a and b are correct
In this matrix the intersection of person A and person B the value is 1 if they share a class, 0 otherwise. The matrix is nothing but 1's and 0's.
Just represent it as they've shown
Amy = 1
Bart = 2
Casey = 3
Djamshid = 4
so element (2,3) represents whether Bart and Casey share a class.