Calculates the optimal combination of quality gems that add up to 40% (resulting in a Gemcutter's Prism) for the game Path of Exile