The correct option is
C both to and away from the CNS
A spinal nerve is a mixed nerve, which carries motor, sensory, and autonomic signals between the spinal cord and the body. We have 31 pairs of spinal nerves and they are named after the section of the spine they come out of.
8 pairs of cervical nerves (C1-C8)
12 pairs of thoracic nerves (T1 – T12)
5 pairs of lumbar nerves (L1-L5)
5 pairs of sacral nerves (S1-S5)
1 pair of coccygeal nerves (Co1)
So, the correct answer is 'both to and away from the CNS'.