I'm learning basics of the probability theory and trying to map the probability concepts I learnt to the following example from my book (Introduction to Algorithms (or CLRS):
Suppose that we have a fair coin and a biased coin that always comes up heads. We run an experiment consisting of three independent events: we choose one of the two coins at random, we flip that coin once, and then we flip it again. Suppose that the coin we have chosen comes up heads both times. What is the probability that it is biased?
I'm confused with what the author here means by an experiment and by an event? What's the sample space in this problem?
My thoughts: the experiment here is actually "choose a coin, flip it twice" meaning that a possible outcome of this experiment is, for example, "biased coin, two heads" or "fair coin, head, tail" etc. Therefore this means that this "biased coin, two heads" and this "fair coin, head, tail" are elementary events.
Consequently our sample space is something like
$$ S = \{ \text{(F, TT), (F, HT), (F, TH), (F, HH), (B, HH)} \} $$
Therefore events should be subsets of the $S$, but author's event is like "choose a coin" or "flip coin first time" which are definitely can't be subsets of $S$.
Where am I wrong and what's exactly the author means by his experiment and events and how they are related to the sample space concept.