Off the top you have 10 tricks - 4 spades, 2 hearts, 3 diamonds and 1 club.
If spades are 4-3, you have an 11th trick.
The 12th trick could come from either the club finesse or a favorable heart position. Hearts can develop the final trick if the suit splits ...