a: \(A=3\cdot\dfrac{1}{8}\cdot\dfrac{-1}{3}+6\cdot\dfrac{1}{4}\cdot\dfrac{1}{9}+3\cdot\dfrac{1}{2}\cdot\dfrac{-1}{27}\)
\(=-\dfrac{1}{8}+\dfrac{1}{6}+\dfrac{-1}{18}\)
\(=\dfrac{-1}{72}\)
b: \(B=\left(-1\right)^2\cdot3^2+\left(-1\right)\cdot3+\left(-1\right)^3+3^3\)
\(=9-3-1+27=36-4=32\)