Aliyah had some candy to give to her four children. She first tookten pieces for herself and then evenly divided the rest among her children. Each child received two pieces. With how many pieces did Aliyah have before she gave them to her children?