(x-3)m+(x+3)n
=mx-3m+nx+3n
=(m+n)x+(3n-3m)
=4x
对应项系数相等
所以m+n=4
3n-3m=0
m=n,代入m+n=4
m=n=2
m^2+n^2=4+4=8