For the two lines of the form,
a1x+b1y=c1 and a2x+b2y=c2 ......(1)
The condition for the infinite solution is,
a1a2=b1b2=c1c2 ....(2)
The given equation are kx+3y=k−3 and 12x+ky=k
Comparing these with equations in (1)
We get, a1=k,a2=12,b1=3,b2=k,c1=k−3,c2=k
Putting these values in (2)
k12=3k=k−3k
(i) k12=3k
k2=36
k=+6 or −6
(ii) k12=k−3k
k2=12k−36
k2+36−12k=0
(k−6)2=0
k=+6 or −6
(iii) 3k=k−3k
3k=k2=3k
k2=6k
k=0 or 6
The only value common from (i) ,(ii) and (iii) is k=6
Therefore k=6