The number 40518 (forty thousand five hundred eighteen) is written in Roman numerals as follows: XLDXVIII