It is important to know that the product of like powers is about adding their exponents, so the answer to (a) is 6 because 6+4=10.
On the other hand, the power of a power can be solved by multiplying their exponents, so the missing number in (b) is 3 because 3x4=12.