The correct option is
D 31
A line segment is a portion of a line. It has two endpoints.
Now, in line
p, these are 6 line segments namely, AK, AL, AB, KL, KB and LB.
Similarly, in line
q, there are 6 line segments namely, EK, EM, EF, KM, KF and MF.
In line
r, there are 6 line segments namely, CK, CN, CD, KN, KD and ND.
In line
s, there are 10 line segments namely, JL, JM, JN, JI, LM, LN, MN, MI and NI.
In line
t, there are 3 line segments namely, HK, HG and KG.
Therefore, the total number of line segments is 6 + 6 + 6 +10 + 3 = 31.
Hence, the correct answer is option (d).