Another approach would be (Though not too different from the one posted above) :
After getting the initial velocity using conservation of energy, the mass follows the path of a projectile, hence:
use
And using the fact that
= 0, and also that y = -2, you can get your answer.