Write and solve an equation to answer the following question. The Smith family rented a recreational vehicle for a seven-day vacation. The cost to rent the recreational vehicle was $560 plus $0.50 per mile. How many miles were driven if the total cost was $1350?
a. 790 mi
b. 1580 mi
c. 395 mi
d. 3820 mi