Call the distance between the towns 'D' .
The time it takes to cover a distance is (distance) divided by (speed).
It takes Mr. Warren D/70 hours on the first trip,
and it takes him D/50 hours on the return.
All together, it takes him 12 hours.
D/70 + D/50 = 12 hours
Change the fractions to
a common denominator
(350) for adding: 5D / 350 + 7D / 350 = 12
Add: 12D / 350 = 12
Divide each side by 12 : D / 350 = 1
Multiply each side by 350 : D = 350 miles .
Check:
Going: 350mi / 70 mph = 5 hours
Coming: 350mi / 50 mph = 7 hours
Total 12 hours yay !