Two trains, Train A and Train B, weigh a total of 407 tons. Train A is heavier than Train B. The difference of their weight is 249 tons. What is the weight of each train