How do I use nodes to combine two images when both have transparent areas?
You can use an Alpha over node to automatically handle the alpha mixing:



However, if all you want to do is mix the alpha channels, a normal mix node will do (think of the alpha channel as a gray scale image):