In the worst situation, the value of m and n should be as following
50 50
25 50
13 37
7 24
4 15
2 9
1 5
1 2
1 1
0 2
0 1
Until now, 11 questions have been asked. However, the final value has not been declared yet. Therefore, 12 guesses are required.