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?