If g can only be a whole number then the answer is 1 and 3 only(Option D) - If g is 2 then median is 6. If g is 11 then median is 7. If g can be a decimal like 6.5 then the answer is 1, 2 and 3(Option E) - If g is 6.5 then the median is 6.5 For a median of 6 g can be less than or equal to 6. For a median of 7 g can be greater than or equal to 7 So check ur question whether u can take decimal values for g or not.
If you make 'g' a number less than 6, the median will be 6. If you make 'g' = 6.5, the median will be 6.5. If you make g larger than 7, the median will be 7. The answer is I, II, and III