Four positive integers $p,q,r,s$ satisfy the following equations:
\(\begin{align*} pq+2p+q&=348 \\ qr+4q+3r&=373 \\ rs+8r+6s&=544 \end{align*}\)
What are $p,q,r,$ and $s$?
a=0;p=0; b=0;c=0;d=0;n=a*b+2*a+b;m=b*c+4*b+3*c;l=c*d+8*c+6*d;if(n==348 and m==373 and l==544, goto loop, goto next);loop:p=p+1;printp," =",a,b,c,d;next:a++;if(a<50, goto5,0);a=0;b++;if(b<50, goto5, 0);a=0;b=0;c++;if(c<50, goto5,0);a=0;b=0;c=0;d++;if(d<50, goto5, discard=0;printp
p = 34, q = 8, r = 31, s = 8