9, 13, 15, 17, 19, 23, 31, 49

The sum of these numbers = 176

And we have 8 numbers.....so .....the original average = 176 / 8 = 22

And the original median = (17 + 19) / 2 = 36/2 = 18

So....the new median must be 20

So....after removing two numbers....the average is 24.....this means that the sum of the new numbers must be 24 (6) = 144

So...the sum of two numbers removed must be 176 - 144 = 32

These pairs sum to 32

(15,17)....if we take these out...the new median is (19 + 23) /2 = 21

(13,19).....if we take these out.....the new median is (17 + 23) / 2 = 20

(9, 23)

So...the numbers must have been 13 and 19.....and their product = 247