help me solve this crafting problem