Let M be the initial amount of men at the party, and W the initial amount of women.
Since there were 80 more men than women, then:
If 60% of men leave the party, then 40% remain. If 35% of women leave the party, then 65% remain.
Then, (40/100)M and (65/100)W remain at the party, Now, there are 13 more women than men. Then:
We got a 2x2 system of equations:
Solve the system using the substitution method. Since M is isolated in the first equation, replace M for W+80 into the second equation and solve for W:
Therefore, there were 180 women at first.