we are given
![(3-7i)(p+qi)i=58i](https://img.qammunity.org/2019/formulas/mathematics/middle-school/b7izeiqkmi1plefte40heqvx2h1jrf6jjl.png)
firstly, we will simplify left side
and then we can compare it with right side
so, we can distribute
![(3p+3qi-7pi-7qi^2)i=58i](https://img.qammunity.org/2019/formulas/mathematics/middle-school/p13sl9e8twfz8bv41a01arfkbj9je3mnsf.png)
![(3p+3qi-7pi+7q)i=58i](https://img.qammunity.org/2019/formulas/mathematics/middle-school/gxif9sej64rqr7anfq4r6m87geqftzkk1q.png)
we have i on both sides
so,i will get cancelled
![(3p+3qi-7pi+7q)=58](https://img.qammunity.org/2019/formulas/mathematics/middle-school/ey81cx9mead5srrrik2c1e6onfx101lmdo.png)
![(3p+7q+(3q-7p)i)=58](https://img.qammunity.org/2019/formulas/mathematics/middle-school/f1882n0tjmr3hl1p3szyqabbe5lmappg7b.png)
we can also write as
![(3p+7q)+(3q-7p)i=58+0*i](https://img.qammunity.org/2019/formulas/mathematics/middle-school/h8oc5lo8vb7d8w9gcbl7mz6kojlpw8ptmj.png)
now, we can compare
and we get
![3p+7q=58](https://img.qammunity.org/2019/formulas/mathematics/middle-school/72giuc0iqxzpn60rvj7qri65byotgu2le7.png)
![3q-7p=0](https://img.qammunity.org/2019/formulas/mathematics/middle-school/guldhxboevi8w0jn0fdy21kiy7v33jwd1h.png)
now, we can solve for p and q
we get
.............Answer