Step 1: What to do.
We match each gland with a hormone it makes.
Step 2: Pituitary gland.
The posterior pituitary releases oxytocin. So A goes with III, oxytocin.
Step 3: Adrenal cortex.
The outer part of the adrenal gland, the cortex, makes steroid hormones like cortisol. So B goes with I, cortisol.
Step 4: Pancreas.
The beta cells of the pancreas make insulin, which lowers blood sugar. So C goes with II, insulin.
Step 5: Adrenal medulla.
The inner part of the adrenal gland, the medulla, makes adrenaline, the fight-or-flight hormone. So D goes with IV, adrenaline.
Step 6: Conclusion.
Putting it together, A-III, B-I, C-II, D-IV, so the answer is "A-III, B-I, C-II, D-IV". \[ \boxed{\text{A-III, B-I, C-II, D-IV}} \]