Theory
A term such as 3x² is a product of 3, x and x. When multiplying terms, multiply the number parts and then the letter parts.
Repeated factors of the same letter give powers. x × x = x² and x² × x³ = x⁵ because there are five factors of x altogether.
Division undoes multiplication. 12x³ ÷ 3x = 4x²: divide 12 by 3 and cancel one common factor of x from top and bottom.
Different letters stay separate. (2a)(3b) = 6ab; do not turn ab into a² or b².
The index subtraction rule xᵐ ÷ xⁿ = xᵐ⁻ⁿ assumes x ≠ 0. At Foundation level, you can also draw or cancel repeated factors to understand why it works.