Find the value of k for which the following pair of linear equations have infinitely many solutions:
2x+3y=7,(k−1)x+(k+2)y=3k.