y=(a-k)x+1 solve for x
Subtract 1 from both sides
y - 1 = (a-k)x
Divide both sides by (a-k)
(y - 1) / (a-k) = x