Help!!! I don’t get this

S, sample space :
all the possible outcomes of an experiment
number × sampel space = 8
Answer :
D. HHH, HHT, HTH, HTT, THH, THT, TTH, TTT
*answer can get from the list of sample space (in pic)
Answer :
A.
* answer can get from the final of tree diagram (in pic)