The answer is the following :
Below the Dace147's explanation
We name A, B, C the 1st, 3rd and 5th brick of the row of the bottom
We know this :
1) A+C=B
We deduce from the rules of the pyramid :
Bricks of the 2nd row (from the bottom)
From left to right :
(A+11) (B+11) (B+4) (C+4) therefore
2) 40=(A+11)+(B+11)=A+B+22
Bricks of the 3rd row
40 (11+4+2B) (B+4+4+C)
Bricks of the 4th row
(40+11+4+2B) (11+4+4+4+3B+C) therefore
3) 151=(40+11+4+2B)+(11+4+4+4+3B+C)=78+5B+C
If we simplify and solve the equations 1) 2) and 3) we obtain A=5, B=13, C=8 and we deduce the rest of the pyramid.