Answer on Question#38638 – Math - Other
For a string in has equal number of a's and b's , let and be the number of and in respectively. Then observe that consists of strings in which , so consists of strings in which , but that any two of these suffice by transitivity, so in particular we take .
We can create a (pushdown automaton) and this accepts any string over the alphabet in which the number of does not equal the number of by only accepting if or . Notice that or if and only if .
CFLs (context-free languages) are closed under union, so the union of the two languages recognized by these PDAs are context free. We've already argued that the union of these two languages is , so we conclude that is context free.
Answer: B.