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