The number of hours of classes attended by students in a semester and the corresponding number of students is tabulated below. Find the median number of hours of classes attended by the students.
Number of hours100−120120−140140−160160−180180−200Number of students192830167