For this problem we know two angles given 45º and 90º we can fidn the other angle with this operation:
And we know one size who represent the hypothenuse given by:
Since we want to find the value of m we can use this formula:
And we know that :
And solving for m we got:
The final solution for this case would be m=7