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
1.6m questions
2.0m answers