A cab company charges $2 per cab ride, plus an additional $0.90 per mile driven. Write an equation that shows the relationship between the distance x and the cost y.

Write your answer as an equation with y first, followed by an equals sign.