(1) Don't mix "X" and "x" in the same problem to denote the same number. It is perfectly legal (and often convenient) to use both lower- and upper-case letters to represent different quantities.
(2) It is also possible you intended your lower-case "x" to be a multiplication symbol (as the other tutor interpreted it). That is an extremely bad practice, since it is easily confused with the variable x.
(3) It is standard to use "^^" (shift-6) to represent exponentiation: "x^2" instead of just "x2"
(4) Use of parentheses is often critical. The equation as you show it is