It is clear that the second head must occur on the third trial.
For the first two trials any of the following two cases are possible.
Let A denote the event that exactly one head occurs in first two trials
Let B denote the event that head occurs on the the third trial.
I hope it makes sense now.