A candle is in the shape of a square prism. The candle is 16 meters high, and its volume is 960 cubic meters. Find the length of each side of the square base.