Aliyah started with 18 pieces
Solution:
In the given question, we have to determine the original number of pieces of candy Aliyah had
Let the number of original pieces of candy she had be "x"
Given that Aliyah first took ten pieces for herself
Hence we have to deduct 10 from original pieces "x"
So we get (x - 10)
And then evenly divided the rest among the four children
So we have to divide (x -10) by 4

Also, each child receive 2 pieces
So, the equation formed is as follows:-

x – 10 = 8
x = 8 + 10 = 18
So, number of pieces at the starting were 18