The volume of a right square prism is 588 cubic centimeters and its height is 12 cm. What is the length of each side of the base