Since you already know the probabilities, just combine them by multiplication.
chance of picking a heart card first = 40%
chance of picking a heart card after picking a heart card first = 30%
chance of picking two cards and both being hearts = 40% x 30% = 12%