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