Let's represent the capacity of the small bucket as "x" and the capacity of the large bucket as "y".
From the first statement, we can set up the equation:
2x + y = 8
From the second statement, we can set up another equation:
y - x = 2
Now we can solve for "x" and "y".
Rearranging the second equation, we get:
y = x + 2
Substituting this value of "y" into the first equation, we get:
2x + (x + 2) = 8
Simplifying, we get:
3x + 2 = 8
Subtracting 2 from both sides, we get:
3x = 6
Dividing by 3, we get:
x = 2
Substituting this value of "x" into the second equation, we get:
y - 2 = 2
Simplifying, we get:
y = 4
Therefore, each small bucket can hold 2 cups of gasoline, and the large bucket can hold 4 cups of gasoline.