She didn't follow the order of operations. She added 16 and 8 before dividing. Remember PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction).
She should first square 2 to get 4, then divide 8 by 4, and finally add 2 to 16 to get 18.