Find Maximum Volume of a rectangular box that is inscribed in a sphere of radius r.

The part i do not get is how the solutions manual got 2x, 2y, and 2z as the volume Can you explain how the volume of the cube for this problem is v=8xyz???