Let’s count it.
I’m assuming that you have a regular deck of cards and that means 13 hearts and 13 kings.
You can pick any card of 52 with equal probability 1/52 for each.
So there are 52 opportunities of 1/52 probability to take any card from deck.
But you are looking only for 13 of hearts and for 13 of kings. That means your chance is (13 + 13) / 52 = 1/2 :)