Look at the picture.
The area of the hexagon is equal six times the area of the
equilateral triangle.
The formula of the equilateral triangle with the leg a:

Therefore the formula of the area of the hexagon with a side lenght a is:

We have a = 12cm. Substitute:
