# Algebraic transformation — where is my mistake?

I tried to find the estimators of $$\hat{\beta_1}$$ and $$\hat{\beta_0}$$ via the least-squares method algebraically. Somehow I seem to have messed up. Can you tell me where?

My Calculations.

$$\sum x_i = n\bar x = \sum \bar x .$$