Let $\omega_0 \ne \omega$, solve $y'' + \omega_0^2 y = \sin(\omega t)$ by Laplace transform using the initial conditions $y(0)=0$, and $y'(0)=0$.
I have gotten down as far as the partial fraction decomposition being this, $\frac{\omega}{(s^2 + \omega_0^2)(s^2+\omega^2)}$ but am confused as how to proceed from there.
From $$A(s^2 + \omega^2) + B(s^2 + \omega_0^2) =(A+B)s^2 + (A\omega^2 + B\omega_0^2) = 1,$$ you get $$A+B=0 ,\qquad A \omega^2 + B \omega_0^2=1 , $$ where you can solve for $A$ and $B$. Only $s$ is considered as a variable here; $\omega$ and $\omega_0$ are constants.