## LollyLau 4 years ago [Easy] Peter and John need to use 6 days to complete some work. John and Lucas need 9 days to finish it, and Peter and Lucas need 15 days to finish it. How many days do they have to use if they do the work together?

1. LollyLau

anyone?

2. LollyLau

They're still busy doing the previous one. "sigh"

3. anonymous

this is a set of diophantine equations right

4. anonymous

You can do it using time and work formula.

5. LollyLau

get three people named Peter, John and Lucas and start :)

6. anonymous

work = work/time * time?

7. anonymous

alright in Python I will create Peter, John, and Lucas objects and see how long they take to do the thing

8. anonymous

Do you need to use python for EVERYTHING?

9. LollyLau

easy solution below.

10. LollyLau

Peter = p John = j Lucas = l p+j = 1/6 j+l = 1/9 p+l = 1/15.

11. LollyLau

add p, j, and l and find the reciprocal.

12. anonymous

Yeah, I knew that, just too lazy to work it out.

13. anonymous

yea it is a bunch of arithmetic $\frac{180}{31}$ i think

14. LollyLau

nice! you got it correct.

15. Mertsj

Of course he did.

16. anonymous

my arithmetic somethings fails me though

17. LollyLau

namely careless.