Train A and train b weigh a total of 343 tons. Train a is heavier than train b. The difference of their weights is 189 tons. What is the weight of each train