Two trains, train A and train B, weigh a total of 526 tons. Train A is heavier than train B. The difference of their weights is 368 tons. what is the weight of each train? How much does train A weigh?​