A cab company chargers a $3.50 boarding fee and $0.50 per mile. Write an equation to describe the relationship between the cost of the cab ride and the number of miles traveled.