do
Andrew = 9 hours/40 apples
Jimmy = 15 hours/ 40 apples
suppose they each had 20 apples
then it would take andrew 4.5 hours and jimmy 7.5 hours
add them together to get 12? don't trust me on this i really didn't get the question
-hope this helps if i misunderstood the question still will answer in comments