The coin is flipped twice, so the sample space:
$$\{HH,TT,HT,TH\}$$
This means that the sample space $(S)$ of the balls in the bag is:
$$S=\{RR,BB,RB,BR\}$$
***Note:*** $P(E_{RR})=P(E_{BB})=P(E_{RB})=P(E_{BR})=\frac14$<p>
For ease, let's denote the event of drawing a red ball by $X$ and that of drawing a blue ball by $Y$.<br>
I'll be using the [**Bayes' Theorem**](https://en.wikipedia.org/wiki/Bayes%27_theorem) to compute the probabilities ahead.
We know, $P(X|E_{RR})=1 \text{ and } P(Y|E_{RR})=0$<br>