a=(w1*x12-x1*xw1)/(n*x12-x1*x1);b=(n*xw1-x1*w1)/(n*x12-x1*x1);