Word Problems with Median and Mean