Answer:
Train A= 249 tons
Train B= 87 tons
Explanation:
Total weight of Train A and Train B= 336 tons
Weight of Train A > Weight of Train B
Difference of their weights= 162 tons
Let the weight of Train A be t.
Then weight of Train B= t-162
Total weight= 336 tons
t+t-162= 336
2t= 336+162
2t= 498
t=

t= 249
t-162= 249-162
= 87
∴ the weights of Train A and Train B are 249 tons and 87 tons respectively.