First look at dy/dt= -y. That's easy to solve and gives the general solution to the associated "homogeneous equation".
Now, try something of the form y= At+ B, for constants A and B. Put that into the equation and try to find A and B that will make the equation true.
Finally, use the "linearity" property: the sum of the general solution to the associated homogeneous equation and any solution to the entire equation is the general solution to the entire equation.
Or, since this is a first order equation, look for an "integrating factor". Rewrite the equation as dy/dt+ y= t and look for a function v(t) such that vdy/dt+ vy is an "exact derivative. That is, such that vdy/dt+ vy= d(vy)/dt. Differentiating on the right, using the product rule, gives vdy/dt+ vy= vdy/dt+ (dv/dt)y. The first terms on both sides are the same so we must have vy= (dv/dt)y or dv/dt= v. A solution to that is v= et. Multiplying dy/dt+ y= t by et, we get etdy/dt+ ety= d(ety)/dt= tet. Integrate both sides of that (use integration by parts on the right).
Both methods will work perfectly well with e-t instead of t. Try y= Ae-t instead of At+ B and solve for A.