A right rectangular prism has a base with sides 6 cm and 8 cm. If the volume of the prism is 624 cm^3, find the height of the prism.