This is probably a very obvious question, but I don't understand it.
I know how to use the least squares method, which I did, and verified using an online calculator. My system is
("e" = and)
I solved x = $[1 , -1]^T$
I don't understand how this solves the problem. I know that if I multiply A by x I get b. What I don't understand is that, I know this method is applied when you have a bunch of points and want to find a line or function that goes through them, in an approximate way. How do I get a line from x? I know x has to do with the coefficients of a polynomial, and that A and b are the x and y coordinates of the points, so why do A has two columns? It's probably a really silly question but I'm very confused.
Thanks.

The least squares problem is $y=X\beta+\epsilon$, and the solution is given by $\beta=(X^TX)^{-1}X^Ty$.
Here, we want to use the least squares technique to find the solution to $b=Ax$. However, least squares is not needed here because the system is consistent, i.e. it has a solution at $(1,-1)$. You can still get the solution by solving $\operatorname{arg min}\limits_x\|b-Ax\|^2=(1,-1)$ and the error is $\|b-A(1,-1)\|^2=0$ because it's a solution.
It becomes more interesting if the equation is inconsistent, i.e. say $b=\left(\begin{matrix}2\\-\sqrt 2\\-3\end{matrix}\right)$. Then the least squares solution will be given by $x=(A^TA)A^Tb=(\frac 3 2,-1)$. This minimizes the Euclidean difference between b and Ax in $R^3$. Here, the difference is not 0, in fact it is $\|b-A(\frac 3 2,-1)\|^2=\|(1/2,0,1/2)\|^2=\frac 1 2$.
There are two ways to think about this
Way 1
Geometrically, the column space of A is a plane given by $\left(\begin{matrix}1\\-\sqrt 0\\-1\end{matrix}\right)x+\left(\begin{matrix}-1\\\sqrt 2\\1\end{matrix}\right)y$, which is a plane in $\mathbb R^3$. You seek a point (x, y) such that the perpendicular (Euclidean) distance between b and Ax is minimum. It's given by (3/2, -1) and the distnace is $1/2$.
Way 2
You've got three planes in $R^3$, $z_1=x-y, z_2=\sqrt 2 y, z_3=-x+y$. It looks like this where the origin is at the center:
The least squares solution is found at the (x,y) coordinate (i.e. moving around in the x-y plane) such that the difference between x-y and the plane z=2, plus the squared difference between $\sqrt 2 y$ and the plane z=$-\sqrt 2$, and the squared difference between -x+y and the plane z=-3 is minimized. You must imagine that there's a "pin" perpendicular to the xy plane and the position of the pin where these vertical distances are minimized is the least squares solution.
Conversely, if the system were consistent, in which case you wouldn't use least squares, the pin would precisely land where x-y=2, $\sqrt 2 y=-\sqrt 2$, and -x+y=-3.