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
3.2m questions
4.1m answers