Ответ:

Вынесем \(3^x\):

\(3^x\left(\dfrac13+1+1\right)=21\).

\(\dfrac73\cdot3^x=21\), значит \(3^x=9=3^2\).

Ответ: \(2\).