Hopefully this isn't too late. I did the exact same mistake. I believe you subtracted the two vectors wrong. You should use the law of cosines which is c^2 = a^2 + b^2 - 2*a*b*cos(45) then multiply by m.
You should get an answer around 5.____
Hope this helps.