factor 16a^2-56am+49m^2=

Notice the first and last terms are squares, and the middle term is twice the product. so I smell a (a-b)^2

Goodness

(4a-7m)^2