Move the grey boxes out of the way for the dark blue block to get through and out of the opening. A REAL strategy. I was pulling my hair out and still haven't beat level 39/40.
Controls
Use your mouse, click and hold on a block to move it. Dark blue block only moves right.