in Table E [N] are the names of the students, in Table L [M] are the names of the subjects, in Table T [N, M] are the grades of students for each subject.

to find the student with the highest grade in the class "Math" (name of the subject given by keypad)

We need to know which language you are using.