Roman numerals are interpreted from left to right. If a smaller number is found before a larger one, it's subtracted. Otherwise, the numbers are added together.