Three baskets A, B and C contain different numbers of differently colored marbles. Basket A contains 4 red marbles and 2 yellow marbles. Basket B contains 6 green marbles and 1 yellow marble. Basket C contains 3 white marbles and 9 yellow marbles. What is the difference between the number of each color of marble in the basket that has the greatest difference?
In basket A the number difference between differently colored marbles is 4-2 = 
<gadget id="calculator">4-2</gadget>
<output>2</output>
2.
In basket B the difference is 6-1 = 
<gadget id="calculator">6-1</gadget>
<output>5</output>
5.
In basket C the difference is 9-3 = 
<gadget id="calculator">9-3</gadget>
<output>6</output>
6.
Comparing 2, 5 and 6 shows that 6 is the greatest difference.

<result>6</result>