Set X consists of 10 integers and has median of 10 and a range of 10. What is the value of the greatest possible integer that can be present in the set?  Choose the correct choice from the following answers: A) 32 B) 37 C) c . 40 D) 20 E) 50

Rationale: "note that both median and range do not restrict too many numbers in the set . range is only concerned with the smallest and greatest . median only cares about the middle . quick check of each option starting from the largest : ( e ) 50 range of 20 means the smallest integer will be 30 . so 20 can not lie in between and hence can not be the median . ( d ) 43 range of 20 means the smallest integer will be 23 . so 20 can not lie in between and hence can not be the median . ( c ) 40 range of 20 means the smallest integer will be 20 . 20 can lie in between such as : 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 this is possible . hence it is the greatest such number . answer ( d )"
Answer: D