Let $\theta$ be the firing angle. The position of the projectile as a function of time is given by
\begin{align}
x &= 100 \, t \cos(\theta) \\
y &= 100 \, t \sin(\theta) - \frac{g}{2} \, t^2 \enspace.
\end{align}
From the first equation we get
$$ t = \frac{x}{100\cos(\theta)} \enspace. $$
Letting $x=10$ and substituting into the equation for $y$, one obtains
$$ 2-50 = 10 \tan(\theta) - \frac{g}{200\cos^2(\theta)} \enspace. $$
Recalling that $\frac{1}{\cos^2(\theta)} = 1+ \tan^2(\theta)$, one gets
$$ \tan^2(\theta) - \frac{2000}{g} \tan(\theta) - \frac{9600}{g} +1 = 0 \enspace. $$
Solving this quadratic equation for $\tan(\theta)$ with $g = 9.81$ and taking the arctangent of the two solutions yields $\theta_1 = 1.5660$ and $\theta_2 = -1.3606$. The first solution corresponds to shooting almost straight up and the second corresponds to aiming almost straight at the bucket. (Aiming straight at the bucket from the cliff top would lead to $\theta = -1.3654$.)