In my Minecraft Survival world, I am attempting to get the strongest possible armor I can. Currently, I can easily create the chestplate and leggings with Protection IV, Thorns III, Mending, and Unbreaking III without maxing out the anvil uses, but I can't achieve the same with the helmet or boots. For the boots I was trying to get Protection IV, Thorns III, Feather Falling IV, Depth Strider III, Unbreaking III, Mending. For the helmet I was trying to get Protection IV, Thorns III, Aqua Infinity, Respiration III, Unbreaking III, Mending. But I can't seem to find out what order is needed to achieve this without going over the limit, and anvil mechanics go right over my head. I figured asking this at least may provide a shortcut for people who need a quick reference for what order is needed to get their overpowered armor.
In conclusion, what order is needed to achieve max enchantments on diamond armor without going over the cap?