$\{a^nb^2a^n \mid n \ge0\}$
I'm studying for my final and I came across this language. I haven't dealt with characters of the same length on opposite ends with something in between.
I came up with the following grammar, but I think it accepts strings that it should not such as: $abb, bba$, etc.
$$\begin{align} S&\rightarrow X\\ X&\rightarrow XbbX \mid \epsilon\\ A&\rightarrow aA \mid \epsilon \end{align}$$