Calculate the optimal order to combine enchantments on an anvil to minimize XP cost and avoid the 'Too Expensive' limit.