carolyn bought 17 gumballs , lew bought 12 gumballs , and carey bought x gumballs . the average ( arithmetic mean ) number of gumballs the 3 bought is between 19 and 25 , inclusive . what is the difference between the greatest number and the smallest number of gumballs carey could have bought ?
n0 = 17.0
n1 = 12.0
n2 = 3.0
n3 = 19.0
n4 = 25.0
t0 = n0 + n1
t1 = n2 * n4
t2 = n2 * n3
t3 = t1 - t0
t4 = t2 - t0
answer = t3 - t4
print(answer)