Concept:Frame equations from the given ratio and the changed number of boys and girls.Explanation:Let the number of girls be G and boys be B.Initially, G=3B​, so B=3G.After 2 hours, boys become B−8 and girls become G+2.They are equal, so B−8=G+2.Substitute B=3G:3G−8=G+22G=10G=5Then B=3G=15.Total initially =B+G=15+5=20.Answer:20 people were present at the party two hours before.