A game is played by first flipping a fair coin and then drawing a card from one of two hats. If the coin lands heads, then hat A is used. If the coin lands tails, then hat B is used. Hat A has 8 red cards and 4 white cards; whereas hat B has 3 red cards and 7 white cards. Given a red card is selected, what is the probability the coin landed on heads?