Question 974053
x/n = y, where x is the total of integers, n is the number of integers, y is their average, then
(x+21) / (n+1) = (y+2)
(x+21+7) / (n+2) = (y+2-1)
***********************************************************
substitute ny for x and we get
(ny+21) = (n+1)(y+2)
(ny+28) = (n+2)(y+1)
we now have two equations in two unknowns
***********************************************************
solve first equation for y
ny+21 = ny+y+2n+2
y +2n = 19
y = 19-2n
***********************************************************
reduce second equation and then substitute 19-2n for y
ny+28 = ny+2y+n+2
2y+n = 26
substitute for y
2(19-2n)+n = 26
38-4n+n = 26
-3n = -12
n = 4, therefore
There are 4 numbers in the original list