It is given in the question that
Arshad's father bought x sweets, (44 - x) were eaten by the children and 20 were left.
It is given that the total sweets are x .
So the equation is

Combining like terms, we will get

Adding x to both sides

Dividing both sides by 2

THerefore Arshad's father bought 32 sweets .