Given:
n = 40, sample size
Confidence level = 99% => z* = 2.58

, sample proportion.
By definition, the margin of error is

Answer:
According to Sarah's poll, she can conclude with 99% confidence level that 20% of the high school population is happy with the quality of the cafeteria food, with a margin of error of +/- 16.3%.