Alia and Huda have some sweets in the ratio 7:3. Alia gives 3 sweets to Huda and now the ratio is 5:3. How many sweets did each have initially?
A/H =7/3,
(A - 3) / (H + 3) =5 / 3, solve for A, H
Alia had 28 and Huda had 12 initially.
7/ (7+3) x -3 = 5/(5+3) x
solve for x = total amount = 40
7 / 10 * 40 = 28
3/10 * 40 = 12 initially