Solve the cubes