In a cube-shaped box with an edge equal to $5$, there are two balls. The radius of one of the balls is $2$. Find the radius of the other ball if one of the balls touches the base and two side faces of the cube, and the other ball touches the first ball, base and two other side faces of the cube.