What the hint is tell you is notice that
$\displaystyle \frac{2}{x}y'-\frac{2}{x^2}y=\frac{d}{dx}\left( \frac{2}{x}y\right)$
So using this identity we get that
$\displaystyle \frac{d}{dx}(y')=\frac{d}{dx}\left( \frac{2}{x}y \right)-\frac{1}{x^2}$
Now move everything to the left hand side
$\displaystyle \frac{d}{dx}\left(y'- \frac{2}{x}y \right)=-\frac{1}{x^2}$
Now just integrate to get a first order ode
Can you finish from here?