The answer requires the use of the hypergeometric distribution.
I will use the notation nCr for the binomial coefficient = n!/((n-r)*r!).
The answer then is 7C1 * 10C1/17C2.
This question asks only that the selected marbles are one red and one green, irrespective of order.