Motion of connected system – A Numerical problem

A mass 5kg descending vertically,draws up a mass of3kg by means of a light string passing over a pulley.At the end of 4 seconds,the string breaks.How much higher 3 kg mass would go? Post your solutions as comments to this post Answer will be posted soon once we get responses from visitors