Fred’s car gets 36 miles per gallon on highways and 26 miles per gallon when driving in cities. If Fred has a 12-gallon tank, how many miles can he travel in the city before having to refill his tank?