So let me explain this to you:
If an orange ball is drawn, there are 2^3 = 8 possibilities for the coins.
So 8 elements from the sample space have an orange ball, answering the first question.
If a green ball is drawn, there are 2^2 = 4 possible coin rows.
This yields 8 + 4 = 12 elements in the sample space.
I hope this can help you