The average speed when John was going to his parents house times the amount of time he took to drive must be equal to the distance. The same is true for the path back home. If we call the amount of time he took to drive to his parents house as t1, the time he took to drive back as t2, and the average speed on the way back as x, we have the following equations:
If we solve the first two equations for the times t1 and t2, we're going to have:
Then, if we substitute those expressions on the third equation, we have:
Solving for x:
Using the quadratic equation, the solution for this expression is:
Then, John average speed going to his parents house was 66 mph while the average speed coming back was 55 mph.