This question was asked in Ex 10.2, 19

In the above solution you took the value of m1 and m2 wrong .. please check

Sajal Vasal's image