COMPARE returns the position of the first character where two strings differ. 'APPLES' and 'APPLESAUCE' are identical for the first 6 characters (APPLES), but at position 7, the first string ends while the second has 'A'. Therefore, COMPARE returns 7.