After 2 females leave a party, there are twice as many males as females. Then 9 males leave and there are twice as many females as males. What is the total number of people left at the party after 9 males leave?