A rectangular prism has a volume 144 centimeters. The base is a square with a length of 4 cm. What is the height of the prism?