There are 3 hours * 60 minutes/hour =<<3*60=180>>180 minutes in 3 hours
You can paint 180 minutes / 20 houses/minute = 9 houses in 3 hours.
#### 9