If the west-bound train travels at a rate of 80 mph for t hours, then the distance it travels is 80t.
If the east-bound train travels at a rate of 90 mph for t hours, then the distance it travels is 90t.
The distance between the trains after t hours is 476; therefore, the distance of the west-bound train plus the distance of the east-bound train equals the total distance between them, 476: