How to do square in Word?

Select number 2. Under Home and Font section choose Superscript. For more complex equations. Go Insert and Symbols section, choose Equations. Choose Script and suitable template. Fill the blanks with correct values.