The triangular pyramid

Puzzle Question: 

One side of the bottom layer of a triangular pyramid has 12 balls. How many are there in the whole pyramid?
Note that the pyramid is equilateral and solid.

Toughness: 
Intermediate