The correct answer is Glucagon was secreted by his pancreas before he ate the cookies because his blood glucose was low. Insulin was secreted after he ate the cookies because his blood glucose was high.
At the time of hunger, the blood glucose level decreases, and glucagon at that time, that is, the hormone discharged by the islets of Langerhans increases the level of sugars in the body. The stored glucose in the liver gets discharged due to the presence of glucagon, which eventually elevates the level of glucose in the blood.
In the given case, when Kai ate the cookies, the level of glucose in the blood got increased and even elevated from the normal level in the blood. At that time, the insulin hormone is discharged from the islets of Langerhans, which helps the cells of the body to absorb the molecules of glucose and thus lowers the concentration of glucose in the blood. Therefore, both the hormones help in monitoring the levels of glucose in the body.