$$ \Omega=\{a,b,c\}, \mathcal{F}=2^{\Omega}\\ P(\{a\})=P(\{b\})=P(\{c\})=\frac{1}{3}\\ X(a)=1, X(b)=2, X(c)=15 $$
$$\mathcal{G}=\sigma (\{a\})=\{\phi, \{a\}, \{a,b,c\}, \{b,c\}\}\}$$
I have to find $E(X|\mathcal{G})$.
I have a solution:
$$E(X|\mathcal{G})(a)=1\\
E(X|\mathcal{G})(b)=E(X|\mathcal{G})(c)=\frac{17}{2}
$$
But I don't know exactly how the solution was found - could somebody give me the formula used here?