Ricky drove from town A to town B in 3 hours because he drove 15 miles per hour slower on the return trip. How fast did Ricky drive on the trip from town A to town B?

I know the answer is 37.5mph but can you please explain it and break it down so that I am able to work similar problems like this one. Thank you

3 answers

outbound at speed v
back at speed (v-15)

say distance d
a to b time = 3 = d/v
b to a time = ? = d/(v-15)

You did not give me all the information
Sorry I didn't type the question correctly.

Ricky drove from town A to town B in 3 hours. His return trip from town B to town A took 5 hours because he drove 15 miles per hour slower on the return trip. How fast did Ricky drive on the trip from town A to town B?
Just put a 5 where I had a ? mark :)

say distance d
a to b time = 3 = d/v
b to a time = 5 = d/(v-15)

so
d = 3 v
and
d = 5(v-15)

3 v = 5 v - 75

2 v = 75
v = 37.5