I believe that example would be 27.
If 3a^2 where a = 3, then it would be 3(3^2), which would be 3(9), which would be 27. I think you accidentally changed your exponent to 3 (or made a typo in the original equation, in which case, if it really was 3, then 81 is correct).
Kimya