I'm having trouble with this problem. Can't find a CFG. Someone an idea?$$L=\{a^n b c^n | n \ge0\}$$
Context free grammar for $L=\{a^n b c^n | n \ge0\}$
context free
$$\begin{align}X&\to aXc\\                X&\to b\end{align}$$