Language Models Compare Quantities Using Number-specific and Unit-specific Heuristics — ThinkLLM