Two knights problem

Hello, I am currently trying to solve this problem CSES - Two Knights .
I’ve been trying to write it down on a piece of paper, but I dont know how it even works for the 2x2.