A cab company charges $4 per cab ride, plus an additional $2 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.