Cover the North and South hands and declare West in SIX clubs on the lead of six of clubs. Given that you win the first with the CK, and that on CQ, South discards a low heart, plan play. This problem is from the 1962 book by Ewart Kempson and Paul Lukacs, "the second book of bridge problems, SINGLE DUMMY PLAYS", a compact collection of 64 test your declarer play hands.
Amazingly, you can cater to any distribution of spades. The solution is to postpone the drawing of the third round (since you want to end up in dummy), play off HAK, DA,DK,Druff, now cross to CA drawing the last trump. Now comes the key move. The two of spades is led. This assures the contract against any distribution and defence. Here, North takes West's queen of spades and leads the ten, West wins and East makes the Ace and the eight on marked finesse.(North can shift to a plain suit but that gives a ruff-discard, disposing of the remaining spade loser). If, instead, North allows west's Queen to win, declarer who still does not know the break, can duck when the 9 of spades appears. If south follows, the spades must be good, If south shows out, North is endplayed. If North shows out on round two of spades, leading up to the closed hand, after going up Ace of spades is simple enough.
Thus, with the elimination complete, you can handle QJxx, A8xx against all breaks. Amazing, is it not? One card combination to add to your mental arsenal.