If a is downward acceleration of 4kg block, the upward acceleration of 1kg block must be 2a.
Let T be tension in each part of string.
The equation of motion on 4kg block is 4g−2T=4a...(i)
The equation of motion on 1kg block is T−1g=1×2a...(ii)
or 2T−2g=4a…(iii)
Adding (i) and (iii), we get 2g=8a or a=4g ∴ Acceleration of 1kg block =2a=2g upwards.