A Very Nice Maths Olympiad Question | How to find the value of m ,n?

A Very Nice Maths Olympiad Question | How to find the value of m ,n?

P