kazakhb
eschn3am
M+N+Q = 30
Median = M+6, but since we have 3 integers and the median is the middle integer, N=M+6
Now try to solve using the smallest possible numbers for M and N.
M=1
N=(1+6) = 7
Q=30-(1+7)=22
{1,7,22} where Q = 22.
how can we know that n is middle number? are these numbers consecutive?
Like Prass said, it's not absolutely necessary to find n, but while they're all there we might as well see what the numbers are.
We have 3 numbers and we're looking for the largest possible Q so Q will be the biggest of the 3.
Since we have 3 numbers, the middle of the 3 will be the median.
It says the median is M+6, so we know M isn't the median. Leaving us with N as the median and equal to M+6
Then we just plug in the smallest numbers we can use since they're all positive integers (1 and 1+6). Subtract out and get 22!