A car travels at a rate of 50 mph and has already traveled 30 miles. Write an equation that represents the distance traveled. Is this function linear or nonlinear? What is the slope?