Given the expressions :

The constant term in the expansions are equal
So, the constant term of the first expansion is :

The constant term will appear when :

So, the constant term is :

And for the second expansions : n = 4
so, the constant term is :

So, the constants are equal :

Divide both sides by (p^2 * q^2 )

Solve for p :
![\begin{gathered} p^2=(6)/(70q^2) \\ \\ p=\sqrt[]{(6)/(70)}\cdot(1)/(q) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/90ls8vk936r5lscj4xo6dsjqrmra16r4ph.png)
We can write q in terms of p as following :
![q=\sqrt[]{(6)/(70)}\cdot(1)/(p)](https://img.qammunity.org/2023/formulas/mathematics/college/vzf7vg3j7pwk8oziefg7fwuxt7w01o1nm8.png)