so we have to divide 5/8 into 5 equal segments.
5 5
-- ÷ ---
8 1
in order to divide fractions we need to flip the second fraction and change the sign from a divition sign to a multiplication sign
5 1 5
-- × --- = ---
8 5 40
now we just simplify 5/40 is equal to 1/8
each glass gets 1/8 of a quart