A hotel arranged cars to transport its guests to a venue. If 4 guests were assigned to each car, the number of guests left over would be evenly divisible by both 6 and 9. When the hotel instead sent 5 guests in each car, the remaining guests had to take a taxi. If the total number of guests was between 40 and 60, what is the minimum number of guests who took a taxi?