Answer:
Train A - 50 miles per hour
train B - 30 miles per hour
Step-by-step explanation:
Let x mph be the speed of the train B, then the speed of the train A is (x+20) mph.
In 3 hours,
In total, they covered the distance of 240 miles, so
[tex]3(x+20)+3x=240\ \ \ \text{[Divide by 3]}\\ \\x+20+x=80\\ \\2x=80-20\\ \\2x=60\\ \\x=30\ mph\\ \\x+20=30+20=50\ mph[/tex]