Better "think step-by-step" and/or "please outline the problems depending on which object goes first"/etc prompting may help - the model needs to be nudged to think out loud and explore the problem, since the leap from problem statement to solution is too big for it to "predict" without some self-generated intermediate steps.