The Lopez family took a taxi to there next destination. The cost of the taxi was 4 dollars plus 3 dollars for each mile traveled.When they arrived the total cost 37 dollars how far did they go in the taxi