How do you solve this word problem?

Peter can paint the fence in 10hrs. Mary can paint the fence in 15hrs.How long will it take if they paint the fence together?

i did it and concluded that it would take them 6hrs if they painted the fence together.

is that right?
3 answers 3