thanks a lot joy. that is the correct answer..
by the way, i got a doubt now.. u have implied in your solution that the angular velocities of m1 and m2 are equal right? does that mean that the earth and moon rotate about their common centre of mass with the same angular velocity?