A small refrigerator has a square base with sides that are 3 feet long. The refrigerator has a capacity of 40.5 cubic feet. How tall is the refrigerator?