An equilateral triangular base is filled by placing eight balls in the first row, 7 balls in the second row and so on with one ball in the last row, After this base layer, second layer is formed by placing 7 balls in the first row, 6 balls in the second row and so on with one ball in its last row. Continuing this process, a pyramid of balls is formed with one ball on top. How many balls are there in the pyramid?