|a-1|^2+(b+1)^2=0
→a=1,b=-1.
∴3(ab-5b^2+2a^2)-(7ab+16a^2-25b^2)
=-4ab+31a^2-31b^2
=31(a^2+b^2)-4ab
=31×(1+1)-4×1×(-1)
=66.