Answer
$0.294J$
Work Step by Step
By definition
$W$=$F.d$
Here $F=mg$ and $d=y$, hence
$F=mgy$ (Force and motion of the block are in the same direction so $ \theta=0^{\circ}$)
Putting the values we get
$F=250g\times9.8\frac{m}{s^{2}}\times12cm$
$F=\frac{250}{1000}kg\times9.8\frac{m}{s^{2}}\times\frac{12}{100}m$
$F=0.25kg\times9.8\frac{m}{s^2}\times0.12m$
$F=0.294J$