x^3 - 3x^2 + x

Substitute 3 for x

so i got 3^3 - 3(3)^2 + 3
27 - 3 - 9 + 3
24 - 9 + 3
15 + 3
18

Is this correct ??????????//

I GOT IT ITS 3