Given that 12q x + 16p + 10p = 192x + 312. Find the values of p and q​