Volume of a pyramid is defined as:
let V = volume
Let l = length
Let w = width
Let h = height
V = (l*w*h) / 3.
Plug our values in.
12 cm^3 = (3 * 2 * h) / 3.
Multiply each side by 3.
36 = 3 * 2 * h.
Simplify the right side of the equation.
36 = 6 * h.
Divide each side by 6
6 = h