Given data points in the form $(x,y,f(x,y)) = (1,1,7),(1,3,0),(1,-1,8)$, find the least squares solution $\hat x$ to the system of equations $Ax=b$.
Is there enough information to use least squares? The solution created $A$ using the $x$ and $y$ coordinates and $b$ using $f(x,y)$. I do not understand this problem. How can you solve for $\hat x$ when you do not know anything about the function? Isn't it presumptuous to assume a linear relationship?
Yes, you got enough information to construct the projection matrix $H$, $$ H=X(X'X)^{-1}X', $$ where $ X=\begin{pmatrix} 1,\,\, 1\\ 1,\,\, 3\\ 1,-1 \end{pmatrix} $, then $Hy=\hat{y}$ where $y=(7,0,8)'$, gives you the least square solution which is $(5,1,9)'$.
You do not necessarily assume linear relationship between $y$ and $x$, you may view the least square solution as a linear approximation of $f(y,x)$ based on $x$. So, basically your assumption is of more technical nature like estimability of the linear (affine) approximation of $y$ using $x$.