Answer: Train A weighs 418 tons and Train B weighs 61 tons
Explanation:
Let a represent the weight of Train A, and let b represent the weight of Train B.
We can set up a system of equations.
a + b = 479
a - b = 357 ( as we are given that a is heavier than b )
We can add the two equations:
a + b + a - b = 479 + 357
Combine like terms (which cancels out the b):
2a = 836
Divide both sides by 2:
a = 418
We can plug this back into the first equation:
418 + b = 479
Subtract 418 from both sides:
b = 61