NPC Encounter - XP and Loot

I rolled up two npc party encounters for a crumbling castle and was wondering how I determine loot and xp for those?

Page 248 explains loot. As for XP, the way I do it is to treat NPCs as having one hit dice per level, and having 1 Special Ability, or 2 if they are Arcane casters, so a 4th level fighter is 4* HD and a fifth level mage is 5** HD.