6 ÷ [2 × (1 + 2)]
= 6 ÷ [2 × 3]
= 6 ÷ 6
= 1
But this is not what the principles of priority of actions dictate.
A little reminder of our student years

There is a simple rule in mathematics that we all learned at some point (and forgot a bit!):
We solve operations in the following order: