45mph times x hours one way
30mph times y hours back
x+y=3 hours 15 minutes
45mph(x)=z miles
30mph(y)=smiles
so

and substituting we know 15 minutes is 1/4 an hour so we have

so 1.95 is how long they were going 30mph
1.95hours time 30mph is 58.5 miles.
so that is the distance. check by putting in y and solving for x. multiply x by 45 and you should get the same distance