create a context free grammar that creates this language: $\{w_1bw_2bw_3 : w_1,w_2,w_3\in \{a,c\}^* \space\text{and}\space |w_2|+|w_3|<2|w_1|\}$
Usually when I solve context free grammar questions, I try to find where the $2$ parts that I need to "count" or "save" or "compare", for example if I want to make a context free grammar that creates palindromes, I know that the trick is creating two similar words, for example $S\to aSa|bSb|a|b|\epsilon$.
This question is confusing me as the two parts aren't clear for me, I'm not getting how I'm supposed to keep track of three parts together with $b's$ in between them.
I would appreciate any help, thanks in advance.