A=5x^2-mx+n,B=3y^2-2x+1
A-B=5x^2-mx+n-(3y^2-2x+1)
=5x^2-3y^2-mx+2x+n-1
2-m=0 n-1=0
m=2 n=1
m^2-2mn=4-4=0