Question 973263
.
This works if the arrangement is one line.
There can be from 0 to five cups to the left
of the glasses with the other cups to the right
of the glasses:
g-g-g-g-g-c-c-c-c-c 1
c-g-g-g-g-g-c-c-c-c 2
c-c-g-g-g-g-g-c-c-c 3
c-c-c-g-g-g-g-g-c-c 4
c-c-c-c-g-g-g-g-g-c 5
c-c-c-c-c-g-g-g-g-g 6
.
6 possible arrangements.