You don't. Each ability levels automatically, indipendently from the other (if they are unlocked, 2nd at Uncommon level, 3rd at Legendary level).
Start: Pet with Heal 30 - Magic Heal 1
Feed item, +300 FP
Result: Pet with Heal 31 - Magic Heal 3
Values are completely random