Go to your inventory, click the food you want to use, choose Use, then select the pet you want to feed.