Solution Equation is linear: subtract $y$ from both sides and divide by $t^2$ to get $y'-\frac1{t^2} y=\frac{2}{t}$ with $p(t)=-\frac1{t^2}$ and $q(t)=\frac{2}{t}$
Equation is not separable because even your professor does not see how to rewrite it as a product (**)