Which one is the correct formula to found b variable from OLS? I got a formula that is from the slides of class that is:

So, because I couldn't fully understand I wanted to look the formula in the web, but I didn't get that one.
But instend, its this the formula that it appear.

This is a little more easy to comprehend. I've tried to understand the first one, but couldn't.
When I use the same values get differents outcomes.
I've used 4 points

And got 0.3386882129 For the first formula and  0.247972973 for the second one.
Some my dubt is, this are two formulas for different things, Or could it be that the second formula is misspelled?

Both your calculations should give $\dfrac{36.7}{148}\approx 0.247973$.
You should check your arithmetic for the first which more in detail should be $$\dfrac{167.7-4\times 10 \times 3.275}{548 - 4 \times 10 \times 10}$$
In general $\sum (x_i - \bar{x})(y_i - \bar{y}) $ $= \sum x_i y_i -  \sum x_i \bar{y}  -  \bar{x} \sum y_i + \sum \bar{x} \bar{y}  $ $= \sum x_i y_i - n \bar{x} \bar{y} -n \bar{x} \bar{y} +n \bar{x} \bar{y} $ $= \sum x_i y_i - n \bar{x} \bar{y}$
and similarly $\sum (x_i - \bar{x})^2 $ $= \sum x_i ^2 - n \bar{x}^2$ .
