x^2+(k(x-3)+3)^2+2x-24=0