We have the next possible events
The events are
HHH
HHT
HTH
HTT
THH
THT
TTH
TTT
The probability that I will have exactly 2 heads is
5.9m questions
7.8m answers