A slingshot fires a pebble from the top of a building at a speed of 17.9 m/s. The building is 36.0 m tall. Ignoring air resistance, find the speed with which the pebble strikes the ground when the pebble is fired in the following directions.

no directions given.

But since the horizontal speed h is constant at 17.9 cosθ,
and the vertical speed is 17.9 sinθ - gt,
you just need to find t when the height is zero:
36 + 17.9 sinθ t - 4.9t^2 = 0
and then the speed on impact is
√((17.9 sinθ - 9.8t)^2 + (17.9 cosθ)^2)