Okay so a king can move into any of the squares that it is surrounded by aka the surrounding 8 squares. Now we split the board into 4 parts, a six by six grid in the middle, the four corners and the remaining parts of the edges, which are each a row six squares long.
For the six by six grid...