x varies directly as the cube of y and x = 32 when y = 2.​