The worst case, we may select all the clubs,
diamonds, and spades (39 cards) BEFORE ANY HEARTS. (i.e 13 clubs+ 13 diamonds +13 spades, which is equal to 39 cards)
So, to guarantee that at least three hearts are selected,
39+3=42 cards should be selected.