The number 22540 (twenty-two thousand five hundred forty) is written in Roman numerals as follows: XXIIDXL