Given an initial position for the knight, the knight can move either north-east, north-west, south-east or south-west. In each of these directions, there are usually two possible positions. For example, from $(d,3)$, the knight can move north-east to either $(e,5)$ or $(f,4)$. Thus, there are a total of 8 possible positions for the knight if the knight starts at $(d,3)$.
Since a knight move consists of jumping 3 squares in the form of an L-shape, mathematically, the 8 possible new positions for the knight can be obtained by just adding or subtracting 1 to one of the two coordinates of $(d,3)$ and 2 to the other coordinate. For instance, adding $(1,2)$ to $(d,3)$ gives $(e, 5)$. Here, I assume that 'adding' 1 to a letter gives the next letter, and so adding 1 to $d$ gives $e$. Or, we can add $(2,1)$ to $(d,3)$, and we get $(f,4)$. Or, we can add $(-1,2)$ to $(d,3)$, and we get $(c,5)$. The number of different additions we can do is the size of the set $\{ (\pm 1, \pm 2), (\pm 2, \pm 1)\}$, which is 8.
Of course, if the knight is not near the center of the board, then the knight could fall off the board if it moves in some of these 8 directions. So, if the knight is near the edge or corner of the board, only some (not all 8) of the possible 'additions' should be carried out.
For part (b), $P= C \times R$ should be clear, where $C$ is the set of columns of the board and $R$ the set of rows.
For part (c), observe that a rook on $(g,2)$ can either move horizontally to one of the 7 squares $(a,2), (b,2), \ldots, (h,2)$ or vertically to one of the 7 squares $(g,1), (g,3), \ldots, (g,8)$. Hence, there are 14 possible new positions for the rook if the rook moves. To express this set of 14 elements in set-theoretic form, observe that there are 8 positions on row 2, namely the positions $(a,2), (b,2), \ldots, (h,2)$. In other words, row 2 is the set $\{(a,2), \ldots, (h,2)\} = \{a,b,\ldots,h\} \times \{2\} = C \times T$. Similarly, column 2 is the set $\{g\} \times \{1,\ldots,8\} = G \times R$. The set of positions in row 2 or column 2 is their union $(C \times T) \cup (G \times R)$. Observe that row 2 consists of 8 positions, column 2 consists of 8 positions, and their union $(C \times T) \cup (G \times R)$ consists of 15 positions (they have a common element $(g,2)$). If a rook must move, it cannot occupy its initial position $(g,2)$. This position is the unique element in the singleton set $\{ (g,2) \} = \{g\} \times \{2 \} = G \times T$. If you remove the element $(g,2)$ from the 15-element set, you get the expression $((C \times T) \cup (G \times R)) - (G \times T)$.