Question 841060
Let the speed of train B be x, then speed of A will be x-12.
Time taken by A = 230/(x-12)
Time taken By B = 290 / x
Given that the time taken by train A =  Train B 
Then, 230/(x-12)= 290/x
=> 23X=29x-348
=> 6x = 348
=> x = 58

therefore the speed of train A is (x-12 = 58-12)46 and Train B is 58.