It wouldn't affect the mean or the median.
Wait just a minute. Hold up. Hee haw. Whoa !
Coming down to Earth for just a second ... what in the world is
the "distance" between integers anyway !
6y^2-7y-3-2y^2+9y+7 (pretend that you're multiplying -1 to 2y^2-9y-7 which is why 9y and 7 are positive now).
Now you're able to simplify your problem, so...
6y^2-2y^2= 4y^2
-7y+9y= 2y
-3+7=4
4y^2+2y+4
Might want to check my math but that's how you do it.
2x-8(-7-x)=6
2x+56+8x=6
10x=-50
x=-5
y=-7-(-5)
y=-2
(-5,-2)