Let's solve the problem by understanding the scenario and calculating the probability that both A and B get the same number of heads when they each toss three fair coins independently.
First, understand the possible outcomes when one person tosses 3 coins:
| Number of Heads | Possible Combinations | Probability |
|---|---|---|
| 0 Heads | TTT | \(\left(\frac{1}{2}\right)^3 = \frac{1}{8}\) |
| 1 Head | TTH, THT, HTT | \(\binom{3}{1} \left(\frac{1}{2}\right)^3 = \frac{3}{8}\) |
| 2 Heads | THH, HTH, HHT | \(\binom{3}{2} \left(\frac{1}{2}\right)^3 = \frac{3}{8}\) |
| 3 Heads | HHH | \(\left(\frac{1}{2}\right)^3 = \frac{1}{8}\) |
Now, both A and B must get the same number of heads. Let's compute the probability for each case:
Add these probabilities together to find the total probability that A and B get the same number of heads:
\(\frac{1}{64} + \frac{9}{64} + \frac{9}{64} + \frac{1}{64} = \frac{20}{64} = \frac{5}{16}\)
Thus, the probability that both A and B get the same number of heads is \(\frac{5}{16}\), which corresponds to option C.