Given equations are
2x+3y=7 ...(i)
2px+py=28−qy⇒p2x+p+q4y=7 ...(ii)
For the pair of equations have infinitely many solutions coefficient of x and y should be same.
On comparing (i) and (ii), we get
p2=2 and p+q4=3
⇒p=4
and p+q=12⇒q=12−p=12−4=8
Hence, p=4,q=8