Answer:
36
Step-by-step explanation:
After dylan took half of the cookies and 6 were left there were
12 before he took any
Than If Koji took a 3rd when 12 were left there were 18
Than if Paige took a 1/4 of what was left when there were 18 there were 24
This same pattern is the same for the next 2
24+6 = 30 and than 30+6 = 36
TLDR;
remove 6 per person meaning there were 36 to begin