since Romeo throw the pebble from the ground at a position 9.8 m below the window and at horizontal distance of L = 9.7 m
It is given that he throw the pebble such that it hit the window only with horizontal speed.
So here vertical speed of the pebble will become zero as it hit the window

so here we know that in y direction



now we will plug in all values


also the time taken by the pebble to reach the window is given by another equation



now in the same time if stone reached the horizontal distance of L = 9.7 m so we can find its horizontal speed as



so the speed of the pebble will be 6.9 m/s when it will hit the window