a, b, and c are integers and a < b < c. S is the set of all integers from a to b, inclusive. Q is the set of all integers from b to c, inclusive. The median of set S is (3/4)b. The median of set Q is (7/8)c. If R is the set of all integers from a to c, inclusive, what fraction of c is the median of set R?
Please explain the approach
Note that for a set of consecutive integers, the median is the the average of the first and the last integer
Median of S =(a+b)/2 therefore a=b/2
Median of Q=(b+c)/2 therefore b= (3/4)c
Thus a= (3/8)c
Median of R = (a+c)/2 = (11/16