Billy is struggling with a math problem that he has for homework, and he doesn't want it to affect his performance on the field. The entire baseball team tries to help him solve it, and they eventually come to the correct solution after several failed attempts. The problem is as follows:
If Joe can paint a house in three hours and Sam can paint the same house in five hours, how long does it take for them to do it together?