The ratio of the number of apples Nicole and Hannah had was 1:3. When Nicole bought 4 more apple and Hannah bought 3 more apples, the ratios became 1:2. Find the number of applles Hannah had in the end.
Let x be the number of apples Nicole has and y be the number of apples that Hannah has.
x/y = 1/3
(x + 4)/(y + 3) = 1/2
Rewrite the first equation to get y = 3x, then substitute into the second equation.
(x + 4)/(3x + 3) = 1/2
2(x + 4) = 3x + 3
2x + 8 = 3x + 3
5 = x
Nicole had 5 apples in the beginning, so Hannah had 15 apples in the beginning. In the end, Hannah had 15 + 3 = 18 apples.