From the pie chart, Gladys's share occupies 5 out of 8 equal parts of the circle. Fraction of sweets Gladys got = \( \frac{5}{8} \). Final Answer: A = 5, B = 8