Mass of the first body m1=5 kg and for elastic collision coefficient of restitution, e = 1.
Let initially body m1 moves with velocity v after collision velocity becomes (10u). Let after collision velocity of M block becomes (v2). By conservation of momentum m1u1+m2u2=m1v1+m2v2 or 5u+M×0=5×10u+Mv2 or 5u=2u+Mv2...(i) Since, v1−v2=−e(u1−u2) or 10u−v2=−1(u) or 10u+u=v2 or 1011u=v2...(ii) Substituting value of v2 in Eq.(i) from Eq.(ii) 5u=2u+M(1011u) or 5−21=M(1011) ⇒ M=2×119×10=1145=4.09kg