The numerals indicate the number of teeth on the smallest and largest gears (cogs), so a 12-28 cassette has a 12-tooth small cog and a 28-tooth large cog. The smallest cog is your highest gear (high speeds) and the largest one is your lowest (lowest speeds).