Photomeson Production in Carbon and Hydrogen