The total sum of 5 integers is 100 (20 x 5 =100). Also, the middle number (the median) is 18.
Say the numbers are a < b< 18 < c < L, where L is the largest number. Observe that a + b + 18 + c + L = 100.
So, a + b +c + L = 82. Also, the maximum value of L will be when a,b, c are smallest.
So, L will be maximum if a = 1, b =2, and c = 19. i.e. the maximum value of L can be 60.