I've seen many solutions for when the number of $a$'s and $b$'s ARE equal but how should the grammar be for the time when the numbers are unequal?
So far I have this but it can't produce many things like aba:
S -> A | B
A -> aAb | bAa | aA | a
B -> aBb | bBa | bB | b
You can't produce
ababecause you just forgot some rules, consider this corrected version: