Patrick B. answered 01/22/19
Math and computer tutor/teacher
R is the slower speed ---> R+4 is the faster speed
T is the slower time ---> 8-T is the faster time
12 = RT and
12 = (R+4)(8-T) = 8R - RT + 32 - 4T
= 8R - 12 + 32 - 4T <--- substitutes RT=12 from first equation
= 8R + 20 - 4T
-8 = 8R - 4T
2 = -2R + T
2R + 2 = T
substitutes this into the first equation
RT = 12
R(2R+2) = 12
2R^2 + 2R = 12
R^2 + R = 6
R^2 + R - 6 = 0
( R + 3 )( R - 2 ) = 0
R+3 = 0 results in negative speeds
R-2=0 ---> R=2
So 2 km per hour for 6 hours and
6 km per hour for 2 hours