若(a^m+1b^n+2)·(a^2n-1·b)=a^5b^4,求m+n的值.