How do I solve this ODE? $$ty' +y= 2t$$ 
I just don't get how to solve it.
I tried dividing the equation by $t$ but that didn't lead me anywhere
someone please help me with this

Hint:
\begin{align}
t \frac{dy}{dt} + y &= 2t \\
\frac{d}{dt}(ty)&=2t \\
d(ty) &= 2t \, dt \\
\int d(ty) &= \int 2t \, dt
\end{align}
