The question is to find the number of integral values of k for which the equation $7\cos x+5\sin x=2k+1$ has a solution.
I have solved it by converting the LHS into $\sqrt{74}\sin (x+\alpha)$, where $\alpha= \arctan(7/5)$. And then making an inequality with RHS.
But I wonder how to solve this question graphically.
You can write $a\sin x+b \cos x$ in a form $A\sin (x+\phi)$ where $$A=\sqrt{a^2+b^2}$$ In your case $A= \sqrt{74}<9$, so $|2k+1|\leq 7$...