It is not about plugging numbers into formulas, it is about finding the equilibrium using a general approach. Start with the dissociation reaction equation, write the formula for Ka, think what happens to concentrations of species involved when the equilibrium shifts (this is mostly a simple stoichiometry).
Do you know what ICE table is? It makes solving this type of problems much easier, not because it gives a magic formula, but it adds structure to the solving process, making it easier to follow.