yeah - the NaCN solution is going to react with h2o to form a strong base, NaOH. therefore the expression that would define this reaction would be Kb. The problem gives you Ka, and the fact that it is HCN just means it is the conjugate acid of CN-. So you have to recall what Kw is (Ka*Kb = 1E-14) and divide Kw by Ka to give you the Kb, which is the expression you need to find the pH of the NaCN solution. now if you set up the equation like regular, you should have 2.0E-4 = (x^2)/.04. The 0.04 comes from the concentration of the solution - you can neglect the amount of x subtracted from it, since it probably won't affect the pH that much anyway. solving for x^2 we get .08E-5 or 0.8E-6. Take the square root to find x (remember we're trying to find the [OH-] concentration) and we get 1E-3 (rough estimation - dunno that decimal exactly but it doesn't matter.) This gives you a pOH of 3, meaning we have a pH of 11.
might have an error or two in that explanation, because i found an error in my work in the middle, but it's right for the most part.