I was recently shown the equation $6 \div 2(1 + 2) = ?$, and it was disputed whether this equation equals $1$ or $9$.
To solve for $1$:
$$ 6 \div 2(1 + 2) \\ 6 \div 2(3) \\ 6 \div 6 \\ 1 $$
To solve for $9$:
$$ 6 \div 2(1 + 2) \\ 6 \div 2 \cdot 3 \\ 3 \cdot 3 \\ 9 $$
While it is more intuitive for the parentheses multiplication to come first, leading to $1$, PEMDAS dictates that the answer is $9$ due to left-to-right operation of multiplication and division.
What is the correct way to solve the problem? Why? What leads to this dispute? How could this ambiguity be prevented in the future?