First, you need to make an "additive" substitution:
[tex]
t = \tilde{t} + \alpha, y = \tilde{y} + \beta[/tex]
that will cancel the free terms in the numerator and denominator of the fraction. Effectively, you need to solve the following linear system:
[tex]
\alpha + 3 \beta - 5 = 0, \ \alpha - \beta - 1 = 0[/tex]
After that, considering [itex]\tilde{y} = f(\tilde{t})[/itex], you get a homogeneous ODE:
[tex]
\dot{\tilde{y}} = \frac{\tilde{t} + 3 \tilde{y}}{\tilde{t} - \tilde{y}} = \frac{1 + 3 \frac{\tilde{y}}{\tilde{t}}}{1 - \frac{\tilde{y}}{\tilde{t}}} = f(\frac{\tilde{y}}{\tilde{t}}), f(z) = \frac{1 + 3 z}{1 - z}[/tex]
You can separate the variables by making one more subtitution:
[tex]
z(\tilde{t}) = \frac{\tilde{y}}{\tilde{t}} \Rightarrow \tilde{y} = \tilde{t} \, z, \ \dot{\tilde{y}} = \tilde{t} \, \dot{z} + z[/tex]