The expression (x2+kx+9)(x−3) is known to simplify to
x3−3x2+9x−27,
where k is a real number.
(i) Find the value of k that satisfies the given equality.
(ii) Verify the equality by carrying out the multiplication with your value of k and simplifying the result.