.
\n" );
document.write( "Distance between two stations X and Y is 220 km. Trains P and Q leave station X at 8 am and 9.51 am respectively
\n" );
document.write( "at the speed of 25 km/hr and 20 km/hr respectively for journey towards Y. Train R leaves station Y at 11.30 am
\n" );
document.write( "at a speed of 30 km/hr for journey towards X. When and where will P be at equal distance from Q and R ?
\n" );
document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " P: 8:00 am 25 km/h --->\r\n" );
document.write( " Q: 9:51 am 20 km/h ---> <--- R: 11:30 am 30 km/h\r\n" );
document.write( "\r\n" );
document.write( " -|------------------------------------------------------|-\r\n" );
document.write( "\r\n" );
document.write( " X (0) Y (220 km)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Since the trains start at different time, the whole problem for analyzing is non-linear.\r\n" );
document.write( "We should analyze it step by step separately for different time intervals, as presented in my solution below.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(1) At t1 = 9:51 am, the positions relative point A are\r\n" );
document.write( "\r\n" );
document.write( " P(t1) = 25 * 1
= 46.25 km; (train P moved 1 hour and 51 minutes at the rate 25 km/h)\r\n" );
document.write( "\r\n" );
document.write( " Q(t1) = 0;\r\n" );
document.write( "\r\n" );
document.write( " R(t1) = 220 km.\r\n" );
document.write( "\r\n" );
document.write( " So, train P still did not get midpoint between Q and R, and we shall continue our analysis.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(2) At t2 = 11:30 am, the positions relative point A are\r\n" );
document.write( "\r\n" );
document.write( " P(t2) = 25 * 3.5 = 87.5 km; (train P moved 3.5 hours at the rate 25 km/h)\r\n" );
document.write( "\r\n" );
document.write( " Q(t2) = 20 * 1
= 33 km; (train Q moved 1
hours at the rate 20 km/h)\r\n" );
document.write( "\r\n" );
document.write( " R(t2) = 220 km.\r\n" );
document.write( "\r\n" );
document.write( " So, train P still did not get midpoint between Q and R, and we shall continue our analysis.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "(3) After 11:30 am, the positions relative point A are (here 't' is the time after 11:30 am)\r\n" );
document.write( "\r\n" );
document.write( " P(t) = 87.5 + 25*t kilometers;\r\n" );
document.write( "\r\n" );
document.write( " Q(t) = 33 + 20*t kilometers;\r\n" );
document.write( "\r\n" );
document.write( " R(t) = 220 - 30*t kilometers.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " We want to have \r\n" );
document.write( "\r\n" );
document.write( " P(t) - Q(t) = R(t) - P(t), which is an equation for P(t) to be the midpoint between Q(t) and R(t).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " It gives us this equation\r\n" );
document.write( "\r\n" );
document.write( " (87.5 + 25*t) - (33 + 20*t) = (220 - 30*t) - (87.5 + 25*t).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " Simplify it step by step and find 't'\r\n" );
document.write( "\r\n" );
document.write( " 2(87.5 + 25*t) = (220 - 30*t) + (33 + 20*t),\r\n" );
document.write( "\r\n" );
document.write( " 175 + 50*t = 253 - 10*t,\r\n" );
document.write( "\r\n" );
document.write( " 50t + 10t = 253 - 175,\r\n" );
document.write( "\r\n" );
document.write( " 60t = 78,\r\n" );
document.write( "\r\n" );
document.write( " t =
of an hour, or 1 hour and 18 minutes. \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Thus, train P will be at midpoint between trains Q and R in 1 hour and 18 minutes after 11:30 am, i.e. at 12:48 pm.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The location of train P will be 4 h 48 min * 25 km/h =
= 120 kilometers from point A.\r\n" );
document.write( "\r\n" );
document.write( "(here 4 h 48 min is the travel time for train P from 8:00 am to 12:48 pm).\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER. Train P will be at midpoint between trains Q and R at 12:48 pm, i.e. 48 minutes after noon.\r\n" );
document.write( "\r\n" );
document.write( " The position of train P will be 120 km from point A at this time moment.\r\n" );
document.write( "
\r
\n" );
document.write( "\n" );
document.write( "Solved.\r
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( " \n" );
document.write( "