The priority order is brackets, then multiply, then subtract. Brackets: 6+2=8 (the brackets force the addition to take place first); multiply: 3*8=24 (3 times the result of the addition in brackets) and 12*2=24; now subtract 24-24=0. Sometimes brackets are called parentheses.