Final answer:
To find the total number of sweets they have altogether, we can set up an equation based on the given information and solve for the number of sweets each person has. Charlie initially has 10 sweets and Bilal initially has 40 sweets. Together, they have 50 sweets in total.
Step-by-step explanation:
To solve this problem, let's assign a variable to represent the number of sweets Charlie has. Let's call it C.
According to the given information, Bilal has 4 times as many sweets as Charlie, so Bilal has 4C sweets.
Bilal gives 15 sweets to Charlie, which means Charlie now has C + 15 sweets. Bilal now has 4C - 15 sweets.
Since they now have the same amount of sweets, we can set up the equation: C + 15 = 4C - 15.
Simplifying the equation, we get 30 = 3C.
Dividing both sides by 3, we find that C = 10.
So Charlie initially had 10 sweets, and Bilal initially had 4 times as many, which is 40 sweets.
Altogether, they now have 10 + 40 = 50 sweets.