To pack a set of books, Gautam got cartons of a certain height that were 48 inches long and 27 inches wide. If the volume of such a carton was 22.5 cubic feet, what was the height of each carton?
[Use 1 foot = 12 inches.]