Let the number of men and the number of women in the beginning be x and y
Now,
Now, In 2nd case,
No. Of men=x-63 and no. Of women =y-12
Now,the ratio becomes

Now,we have, 2x=5y
Putting the value of Y=56 in 2x=5y,we get,

Hence, the number of men was 140 and the no. of women was 56
Hi...I am from India.. Where are you from?