Suppose a variable y is related to variables x and k by the equation y=x−kx. Which of the following correctly expresses k in terms of x and y?
k=yx(y−1)
k=yx−x
k=x−y
k=yx−x