Explanation:
remember the priorities of doing the calculation operations :
1. brackets
2. exponents
3. multiplications and division
4. addition and subtraction
so,
(22 + 5) / (12 - 9) × 6
(27) / (3) × 6
and to write it without any doubt :
(27 / 3) × 6
9 × 6 = 54
why is
(27 / 3) × 6
better than
(27) / (3) × 6 ?
because if you are really taking it literally, you could understand
27 / 3 × 6
as
27 / (3 × 6)
and then the result is different.
so, many greetings to your teacher ! if what your write here was really what your teacher gave you, he/she was sloppy. in real math documentation people would write that as
((22 + 5) / (12 - 9)) × 6
our leave extra space like
(22 + 5) / (12 - 9) × 6