A taxi service charges a flat fee plus a per-mile rate. A 2-mile ride costs $7, and a 5-mile ride costs $13. If the relationship between the cost and the number of miles is linear, what is the cost, in dollars, of an 8-mile ride? (Disregard the $ sign when gridding your answer.)