Follow PEMDAS
You do stuff in order of parenthesis first, then exponents, then multiply or divide (reading left to right order), then add or subtract (left to right order)
So first answer is correct.
First do 9*3 =27 (parenthesis)
Second do 27/3= 9 (divide)
Third do 6+9+8 = 23 (addition)