Blending light

So as you all know, Minecraft has ambient occlusion with its lightning. Id like to implement such a kind of light system into my 2D tile game. Its hard for me to ask specifically what I want because i have no idea how the ambient occlusion works. So in simplest terms: How do you go ahead and blend squares of light?