If you have the Ksp and you want to solve for x then you would use this equation. You normally use this equation for weak acids and bases. If you have a common ion effect question, you will use the common ion's concentration and whatever is left over. If you have a common ion like OH- = .1 M you will use [x][.1]^3 = Ksp