Number theory quiz 2

please tell how to approach question no.12