Two trains leave the station at the same time, one heading east and the other west. The eastbound train travels 12 miles per hour slower than the westbound train. If the two trains are 540 miles apart after 3 hours, what is the rate of the eastbound train?

Do not do any rounding.

speed of eastbound train --- x mph

speed of westbound train --- x+12 mph
3x + 3(x+12) = 540
6x + 36 = 540
x = 84