Find the value of k for which each of the following systems of linear equations has an infinite number of solutions:
(k−3)x+3y=k,kx+ky=12.