The clear height of a single cup is 7 cm,
Double cup gap 1cm,
The height of 100 is equal to the height of a single cup plus 99 gap cups, so 7+99* 1.
This is a mathematical formula, a binary linear equation.
x+(3- 1)Y=9
x+(8- 1)Y= 14