I hope you won't try to solve the differential equation from scratch!${}^{1}$
If you just plug in the given $x(t)$ into the equation, what do we get? \begin{align*} x(t) & = a\sin(t) + b\cos (t)\\ x'(t) &= a\cos(t) - b\sin(t)\\ x''(t) &= -a\sin(t) -b\cos(t)\\ \frac{d^2 x}{dt^2} - \frac{dx}{dt} - x &= (-a\sin t-b\cos t) - (a\cos t - b\sin t) - (a\sin t + b\cos t)\\ &= (-2a+b)\sin t + (-2b-a)\cos t. \end{align*} Since you know that this is a solution, you should get $\cos t$. That tells you something about the coefficients of $\sin t$ and $\cos t$ that you got by plugging in. Does it look like a system of linear equations?
${}^1$: Happens every semester that I teach Calculus II; the book has early mention of Differential Equations as something integrals will be good for, but the students don't have the tools yet to solve even the most simple differential equations. A few problems ask the students to verify that a certain function is a solution, or to find conditions on certain parameters for a given function to be a solution, and invariably 99% of the students have a pavlovian response and try to solve the given equation and if successful compare the solution they find with the given solution, instead of simply plugging in the given answer to check if it works. This happens even though I tell them that to check something is a solution you don't need to solve, even though I do examples on the board before the homework is due, even though I give them quiz problems that specifically say things like "even though you cannot yet find the general solution to this equation"... Sigh.