Use kinematic equation:
\[
x = ut + \frac{1}{2} a t^2
\]
Given: \( x = -5 - 3 = -8\ \text{cm},\ u = 12\ \text{cm/s},\ t = 2\ \text{s} \)
\[
-8 = 12 \cdot 2 + \frac{1}{2} a \cdot 4
\Rightarrow -8 = 24 + 2a \Rightarrow a = \frac{-32}{2} = -16\ \text{cm/s}^2
\]