In a class, the ratio of boys to girls is 3:4. If the number of boys is increased by 5 and the number of girls is increased by 2, the new ratio becomes 4:5. How many boys and girls are there in the class originally? Let's think step by step and output the final answer within \boxed{}.
user