Here's how to approach level 40:
You should now have three rows of two blocks each in the upper portion of the puzzle. Keep pushing these blocks left and down, filling the right row first. Then take the top block in the middle, move it left and down, and finally move the remaining blocks up, left, and down to fill the remaining spaces.