Consider the given equations.
2x+3y=7
(k−1)x+(k+2)y=3k
The general equations
a1x+b1y=c1
a2x+b2y=c2
So,
a1=2,b1=3,c1=7
a2=k−1,b2=k+2,c2=3k
We know that the condition of infinite solution
a1a2=b1b2=c1c2
Therefore,
2k−1=3k+2=73k
⇒2k−1=3k+2
⇒2k+4=3k−3
⇒k=7
Hence, the value of k is 7.