Everything from the 2 lessons of this topic on a few pages: the key idea of each lesson, the diagram to remember, the points to learn and the traps examiners set. Read it, cover it, test yourself.
Model the projectile as a particle with constant acceleration \(g\) vertically downwards and nothing horizontally (we take \(g = 10\) m s-2). Resolve the initial velocity \(u\) at angle \(\alpha\) above the horizontal into \(u\cos\alpha\) and \(u\sin\alpha\). Then, with upwards positive, \[\begin{aligned} x &= (u\cos\alpha)\,t, & v_{x} &= u\cos\alpha,\\ y &= (u\sin\alpha)\,t - \tfrac{1}{2}gt^{2}, & v_{y} &= u\sin\alpha - gt. \end{aligned}\] The two directions are independent; the same \(t\) appears in both. Speed is \(\sqrt{v_{x}^{2} + v_{y}^{2}}\) and the direction is \(\tan\theta = \dfrac{v_{y}}{v_{x}}\).
Gravity acts only vertically: never put \(-10\) into the horizontal motion, and never use the full speed \(u\) in a vertical equation (it is \(u\sin\alpha\)). And the speed is \(\sqrt{v_{x}^{2} + v_{y}^{2}}\), not \(v_{x} + v_{y}\). Always say whether the direction is above or below the horizontal: the sign of \(v_{y}\) tells you.
\(R = \dfrac{u^{2}\sin 2\alpha}{g}\) is only for landing at the SAME height as the launch. And it is \(\sin 2\alpha\), not \(2\sin\alpha\): at 30° and 20 m s-1 the range is \(40\sin 60^{\circ} \approx 34.6\) m, not \(40 \times 2 \times 0.5 = 40\) m. When solving \(\sin 2\alpha = k\), remember the second solution \(180^{\circ} - 2\alpha\).
Fix one positive direction and keep it. With upwards positive the landing condition is \(y = -45\), not \(y = 45\); writing \(10t - 5t^{2} = 45\) gives a quadratic with no real roots (the stone never rises 45 m). Do not use \(R = \dfrac{u^{2}\sin 2\alpha}{g}\) from a cliff: it gives only where the stone passes the level of the cliff top.
With the origin at the point of projection, \(x\) horizontal and \(y\) vertically up, \(x = ut\cos\alpha\) and \(y = ut\sin\alpha - \tfrac{1}{2}gt^{2}\). Eliminate \(t = \dfrac{x}{u\cos\alpha}\) to get the equation of the trajectory \[y = x\tan\alpha - \dfrac{gx^{2}}{2u^{2}\cos^{2}\alpha} = x\tan\alpha - \dfrac{gx^{2}}{2u^{2}}\big(1 + \tan^{2}\alpha\big).\] The second form is a quadratic in \(\tan\alpha\): through a given point there are two angles, one angle, or none, decided by the discriminant. Throughout, \(g = 10\) m s-2.
The \(\cos^{2}\alpha\) belongs in the denominator, and it is SQUARED: for \(u = 20\), \(\alpha = 45^{\circ}\) the coefficient is \(\dfrac{10}{2 \times 400 \times 0.5} = \dfrac{1}{40}\), not \(\dfrac{1}{80}\) (forgetting \(\cos^{2}\alpha\)) or \(\dfrac{1}{20}\) (forgetting the 2). And keep the origin at the point of projection, with \(y\) measured upwards: points below the start have negative \(y\).
When you replace \(\sec^{2}\alpha\), the identity is \(\sec^{2}\alpha = 1 + \tan^{2}\alpha\). Writing just \(\tan^{2}\alpha\) loses the constant term \(k\) and gives the wrong angles (here 75.0° and 15.0° instead of 73.7° and 30.4°). And do not throw away a root without a reason: both angles are answers unless the question rules one out.
\(B\) contains \(u\) AND \(\alpha\): \(B = \dfrac{g\sec^{2}\alpha}{2u^{2}} = \dfrac{g(1 + \tan^{2}\alpha)}{2u^{2}}\). Find \(A = \tan\alpha\) first, then use it inside \(B\). Setting \(B = \dfrac{g}{2u^{2}}\) (dropping \(\sec^{2}\alpha\)) gives a speed that is too small whenever \(\alpha \ne 0\).