This puzzle was interesting, initially i tried to calculate how i can use both projection and purification, but eventually just said fuck it and solved it and this is probably min, no idea how to optimize for cost tho, probably would require some mutiarm magic which i dont get