For a(ii) you have, basically ##\theta+\phi=\pi## (always use radians) ... with theta and phi expressed as inverse cosines of functions of x.
Your next step was to take the cosine of both sides - but you did this step incorrectly:
note: ##\cos(A+B)\neq \cos A + \cos B##