Answer:
n = p+3q
Explanation:
2^p x 8^q = 2^n
Exponent rules
Rewriting 8 as 2^3
2^p x 2^3^q = 2^n
Using the rule a^b^c = a^(b*c)
2^p x 2^3q = 2^n
Using the rule a^b * a^c = a^(b+c)
2 ^(p+3q) = 2^n
Since the bases are the same, the exponents are the same
p+3q = n