Actually, the formula is D(istance)=R(ate) * T(ime). First, find out what the problem is asking and then solve the equation to give that type of answer. The answer is looking for distance and we already have a formula for distance. If we wanted Rate, we would divide by Time giving R = D/T. For Time, T=D/R.
Second, we know that when they meet, since they are traveling in opposite directions, that they must have traveled the total distance. So Sasha'a distance + Mario's distance = Total distance. Since we know that D=R*T, we have the start of our equations: (R of Sasha * T of Sasha) + (R Mario * T Mario) = D total.
During the time that they are both walking, they are walking for time X. Since Sasha started first, we have Sasha's time as X + 5.
Now lets put in all of our known numbers: (2*(x+5)) + (3 * x) = 100. Solving gives us a value of 18 for x. So, Mario walked for 18 hours, and Sasha walked for 23 hours (18+5).
Now using the original formula of D=R*T, we have Mario's distance = 3*18 = 54. For fun, Sasha's distance would be 2 * 23 or 46. To check, we can see that 54+46 does equal 100.