Please see the attachment.
Because the value of r will be maximum when the z point will be the highest point of the trazectory,
z = Vo^2*sin^2(Q)/2g
Here, Q (read as theta) = angle of ...
This solution provides step-by-step calculations in 164 words for finding the highest point of a trazectory to find the surface within which a target can be hit.