The number 12942 (twelve thousand nine hundred forty-two) is written in Roman numerals as follows: XIICMXLII