A rectangular hat box has a volume of 5,184 cubic inches. The box is 2 feet long by 18 inches wide. What is the hat box's height?