Answer:
not sure if I understand but I believe you are talking about writing it down
In any version of Microsoft Word, type m2, then highlight the 2. Now press and hold Ctrl and Shift, then press the + key and it will be changed to superscript and will look like this: m2