You are given a math word problem and you are supposed to apply division mathematical operator on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Context: You had 14 bags with equal number of cookies. If you had 28 cookies and 86 candies in total 

 Question: How many bags of cookies do you have?
2