CFG for all strings of a’s and b’s that contain a different number of a’s and b’s
In fact, your grammar is correct and clean!

Here is how your grammar generates $abbab$.

$$S\Rightarrow B\Rightarrow EB\Rightarrow^* abB
\Rightarrow abbE\Rightarrow^* abbab $$



Exercise. Show your grammar is correct.