John repairs 3 cars that take 40 minutes each, so he spends a total of 3 * 40 = 120 minutes on these cars.
Since there are 60 minutes in an hour, this is equal to 120 / 60 = 2 hours.
For the remaining cars, they take 50% longer to repair, so they take 40 * 1.5 = 60 minutes each.
He repairs a total of 5 - 3 = 2 cars that take 60 minutes each, so he spends a total of 2 * 60 = 120 minutes on these cars.
Again, this is equal to 120 / 60 = 2 hours.
In total, John spends 2 + 2 = 4 hours repairing cars.
Since he earns $20 per hour, he makes a total of 4 * $20 = $80.
#### 80
The answer is: 80
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
If John repairs a total of 5 cars, with 3 of them taking 40 minutes each to repair and the remaining cars taking 50% longer each to repair, and he earns $20 per hour for repairing cars, what is the total amount of money he makes?

### Answer:
