Distance = (rate)(time), so time= (distance)/(rate)
Time for first part of trip + time for second part = 7
Let x = rate for first part of trip
So, x + 3 = rate for second part of trip
245/x + 104/(x + 3) = 7
Multiply through by the LCD: x(x + 3) to get
245(x + 3) + 104x = 7x(x + 3)
245x + 735 + 104x = 7x2 + 21x
349x + 735 = 7x2 + 21x
7x2 - 328x - 735 = 0
By the quadratic formula
x = (328 ± sqrt ((-328)2 - 4(7)(-735)))/(2(7))
= (328 ± sqrt(128164))/14
= (328 ± 358)/14
= 686/14, -30/14
= 49, -2.14
Since x can't be negative, x = 49 and x + 3 = 52
ANSWER: The speed for the first part of the trip was 49 mph and the speed for the rest of the trip was 52 mph.