Find total marbles:
8 + 15 + 17 = 40 total marbles.
There is 8 red, so picking red first would be 8/40, which can reduce to 1/5.
After taking 1 marble there would be 39 marbles left.
Picking blue would be 15/39, which reduces to 5/13
The probability of doing both is
1/5 x 5/13 = 5/65, which reduces to 1/13
The answer is B. 1/13