As the intial momentum of the system is zero (as they are relased from rest), and no external force acts on the system, the net momentum of the system should be 0 at any instant in time.
Let us say v1 and v2 are the speeds of the mass 1Kg and 2Kg respectively,
So 1×v1=2×v2
or v1v2=21
And ratio of their momentum is1.
Ratio of KE=1×v122×v22=2.