Look at the answers given to the question at http://web2.0calc.com/questions/a-ball-is-thrown-horizontally-from-the-top-of-a-building-25-3-m-high-the-ball-strikes-the-ground-at-a-point-32-9-m-from-the-base-of-the-bui and use the same method, but with the distances replaced by your values.
Note: The mass of the rock is not needed.