$K = \{a^kba^lba^n|kk+l=n\} $
$L=\{a^kba^lba^n|kl=n\} $
Firstly, let's consider language $K$. I use pumping lemma to show that $K\notin CFG$.
Let $s=a^pba^pba^{2p}=uvxyz$
Thanks to pumping lemma: $$(1)|vy|>0$$$$(2)|vxy|\le p$$$$(3)\forall_{i\ge 0}uv^ixy^iz\in K$$
First of all, $v$ and $y$ can't contain $b$ - in against case we violate structur of word. The key to solve this is the fact that thanks to $(2)$ $v$ and $y$ can't contain all of part with letters $a$. So we always violete constraint: $k+l=n$.
Is it ok ?
Moreover, I think that the same solution work for language $L$. Help me, please