We have the following:
replacing:
solving for n:
n = 5
n = 2
The solution is:
(2, 5) and (5, 2)
4.6m questions
6.0m answers