Final answer:
To find the weight of each train, we set Train B's weight as x tons and solve the equation 2x + 100 = 154, which reveals that Train B weighs 27 tons and Train A weighs 127 tons.
Step-by-step explanation:
To solve for the weights of both trains, we let the weight of Train B be x tons. Therefore, the weight of Train A will be x + 100 tons. Since we know the total weight, we can write the equation:
x + (x + 100) = 154
This simplifies to:
2x + 100 = 154
Subtracting 100 from both sides gives us:
2x = 54
Dividing both sides by 2 gives us:
x = 27
Therefore, Train B weighs 27 tons and Train A weighs 127 tons (since 27 + 100 = 127).