What is the value of g(2)? Please show work

By the inequality for x over on the right side if x is equal to or greater than 2 you use the bottom equation.
G(2) means x is 2.
Using the bottom equation replace the x’s with 2 and solve.
X^3 -9x^2 +27x-25
2^3 -9(2)^2+27(2)-25
Simplify:
8 -36 + 54-25 =1
The answer is A. 1