You plan a trip that involves a 40-mile bus ride and a train ride. The entire trip is 140 miles. The time (in hours) the bus travels is y1=40x, where x
is the average speed (in miles per hour) of the bus. The time (in hours) the train travels is y2=100x+30. Write a simplified model in factored form that shows the total time y of the trip in terms of x.
y=____