### Theory:

Roman numeral is a number system that originated in ancient roman. Ancient Romans used some special notation to show numbers. In this system, the numbers are represented by the Latin alphabets.
Basic Roman symbols:

 1 5 10 50 100 500 1000 I V X L C D M

Combination of Roman numerals:

 1 2 3 4 5 6 7 8 9 I II III IV V VI VII VIII IX

 10 20 30 40 50 60 70 80 90 X XX XXX XL L LX LXX LXXX XC

 100 200 300 400 500 600 700 800 900 C CC CCC CD D DC DCC DCCC CM

Rules for forming numbers:
• If a symbol is repeated, its value is added as many times as it occurs. For example, $$XXX = 10+10+10 =30, DCC =500 +100+100 = 700$$
• Any symbol appears after the large symbol, add it. For example, $$VII = V+II = 5 + 2 = 7$$.
• Any symbol appears before the large symbol, subtract it. For example, $$XIX = X+IX = 10+(10-1) = 10+9 = 19$$
Important!
Same symbols cannot be used more than three times continuously.
Write in Roman numeral form:
Example:
$\begin{array}{l}96\phantom{\rule{0.147em}{0ex}}=90+6\\ =\left(100-10\right)+\left(5+1\right)\\ =\mathit{XC}\phantom{\rule{0.147em}{0ex}}+\phantom{\rule{0.147em}{0ex}}\mathit{VI}\\ =\mathit{XCVI}\\ \\ 2467\phantom{\rule{0.147em}{0ex}}=2000++400+60+7\\ =\left(1000+1000\right)+\left(500-100\right)+\left(50+10\right)+\left(5+2\right)\\ =M+M+\mathit{CD}+\mathit{LX}+\mathit{VII}\\ =\mathit{MMCDLXVII}\end{array}$