a) \(\left(-3\right).\left(-x\right)=-9\)
\(\Leftrightarrow-x=\left(-9\right):\left(-3\right)\)
\(\Leftrightarrow-x=3\)
\(\Leftrightarrow x=-3\)
b) \(\left(-3\right)^x=-27\)
\(\Leftrightarrow\left(-3\right)^x=\left(-3\right)^3\)
\(\Leftrightarrow x=3\)