When you toss a coin the sample space is {H, T}. Similarly, if a coin is tossed twice, the sample space is HH,HT,TH and TT, which are the possible combinations.
We can see this by means of the following tree diagram:
Therefore, the sample space is

Event that the second toss is heads:
