There are 64 people in the room.
Since the ratio for women increases 1 when 8 women enter the room, for every time there is 1 in the ratio there are 8 people. That means that originally you have to do 3x8 and 4x8. You get 24 and 32 which equals 56. Then when 8 more women enter the room, you get 64.