About test case explanation

for the question – chef In Infinite Plane

I have a doubt for test case — 16, 8
how answer is 2?
in explanation it is given – (8,8) (4,4)
instead, can’t we use (15,1), and (6,2) and distinct number is 3 instead of 2