There are as many girls as there are boys in a class. 8 girls went for a dance competition. now there are twice as many boys as there are girls in the class. how many students were there in the class initially?