Ques 7 Maths & Number theory quiz

Can you please explain this ques?