FERMAT 2021 Problem 17

The set S consists of 9 distinct positive integers. The average of the two smallest integers in S is 5 . The average of the two largest integers in S is 22 . What is the greatest possible average of all of the integers of S ?

Answer Choices
A. 15
B. 16
C. 17
D. 18
E. 19