If $3\sin x +5\cos x=5$ then prove that $5\sin x-3\cos x=3$
What my teacher did in solution was as follows
$$3\sin x +5\cos x=5 \tag1$$
$$3\sin x =5(1-\cos x) \tag2$$
$$3=\frac{5(1-\cos x)}{\sin x} \tag3$$
$$3=\frac{5\sin x}{(1+\cos x)} \tag4$$
$$5\sin x-3\cos x=3 \tag5$$
However this should not be true when $\sin x=0$, as division by zero is not defined; and also, if $\sin x=0$, then the expression we have to prove evaluates to $-3$. In other words question is incomplete but my teacher denied it.
Am I correct in my reasoning?