If \displaystyle T is the tension in the spring then
\displaystyle \uparrow \displaystyle T-mg=0 as the forces on the sphere are in equilibrium.
\displaystyle T=mg=2\textrm{.}5\times 9\textrm{.}8=24\textrm{.}5\ \text{N}