Use foil method or shortcut.
Foil method:
(m-7)(m-7) then multiply or distribute.
Shortcut:
multiply the m by it self so it will became m squared then multiply the 2 or squared to m and -7 then multiply the -7 by itself so the answer will be m square-14m+49.