Well, you want to know at what time t the rock the hits the ground, as it is a necessary part in finding your final answer: "How far from the castle wall does the launched rock hit the ground?"
You can't solve for t unless you have an equation for the height of the projectile (y - y0 = Vy(t) -...