If each bag has 3 cookies and you had 21 cookies in total how many bags of cookies do you have?
. 

3 cookies per bag means that if we divide the total number of cookies by 3, we will know how many bags of cookies we have. 

21 divided by 3 is 7. 

So we have 7 bags of cookies.