The number 30542 (thirty thousand five hundred forty-two) is written in Roman numerals as follows: XXXDXLII