Dear Student ,
as the particle of mass m is moving along x axis its potential as well as kinetic energy about y axis is O.
Hence, by conservation of energy
mgh= (m/4)g15 + (3m/4)gy =0 { because h along y axis is 0}
or , (-mg ) x 15=3 x mgy
hence y= -5cm
Regards