The total number of sweets given to Mohamed in the beginning is equals to 20.
As given in the question,
Let x be the total number sweets given to Mohamed in the beginning.
Number of sweets he ate when feeling sick = [tex]\frac{x}{5}[/tex]
Number of sweets left = x - (x /5)
= (4x / 5)
Number of sweets he ate next day = [tex]\frac{1}{4}[/tex] × [tex]\frac{4x}{5}[/tex]
= x /5
Number of sweets left = (4x/5) - (x/5)
= (3x /5)
Number of sweets he ate on the following day = [tex]\frac{1}{4}[/tex] ×[tex]\frac{3x}{5}[/tex]
= (3x / 20)
Number of sweets left at the end = (3x /5) - (3x/20)
= (12x-3x) / 20
= (9x /20)
As per given condition,
(9x / 20) = 9
⇒ x = (9 × 20)/9
⇒ x= 20
Therefore, the total number of sweets given to Mohamed in the beginning is equals to 20.
Learn more about number here
brainly.com/question/17429689
#SPJ4