FORMULAS:
U = no. of students got correct in upper group / total 27% of the upper group of students
L = no. of students got correct in lower group / total 27% of lower group of students
Difficulty Index = U + L / 2
Discrimination Index = U - L