At first, $$\frac{3}{7}$$ of the pupils in a class were girls. Then, 12 girls from another class come over and that made $$\frac{3}{5}$$ of the pupils girls. <br>How many pupils were there in the class at first? <hr> There were <input min="0" type="number" id ="imp5pg062q9_1" class="lineinput" placeholder="?" /> pupils in the class at first.