you just have to drag pic. B onto the pic. A document. It should open up as a new layer automaticaly. Then in your layers palette, just drag the layer with pic B under the main one.
Just make sure the main one isnt locked anymore by double clicking on it.