Quadratic form means the highest power of the variable is 2.
In problems like this one note that m^6 = (m^3)^2. So make some other variable, say u, and set u=m^3. Then this equation becomes:
u^2-16u+64 = 0