a) We know that:

Now, if we change xi by yi and:

then:

Therefore, if 179 changes to 305, then the mean increases.
The mean of the given values is:

The mean after change 179 by 305 is:

Also, notice that:

b) The median of the given set is:

And the median after change 179 by 305 is:

Therefore the median increases by 6.
Answer:
a) It increases by 18.
b) It increases by 6.