Two trains left the station at the same time, one heading due east at 40 miles per hour and the other heading due west at 50 miles per hour.

How far apart were they after 4 hours?

please don't tell me the answer just tell me how to do it
Thanks!!