Explanation:
To achive that you have to piant a ring in red, which will have its big diameter equal to the sphere diameter and its small diameter equal to the cube diagonal.
The diagonal of the cube can be calculated using Pithagoras:
[tex]D^2=L^2+L^2[/tex]
Where D is the diagonal and L is the side of the cube