The number 27042 (twenty-seven thousand forty-two) is written in Roman numerals as follows: XXVIIXLII