Train A is 12 mph slower than train B. Train A travels 230

miles in the same time it takes train B to travel 290 miles.
Find the speed of each train.