The problem is as follows:
"Please set up (but do not solve) the normal equations for the following least squares approximation problem: Find $(a, b, c, d)$ such that the plane H described by $ax + by + cz = d$ minimizes $\sum |ax_i + by_i + cz_i − d|^2$ where the $(x1, y1, z1), \cdots ,(x6, y6, z6)$ are the following points: $(2,3,4)$, $(99,−85,0)$, $(0,1,8)$, $(5,2,2)$, $(3,3,3)$, $(1,2,4)$."
I solved a similar problem with points representing ordered pairs, for example $(2,1)$, $(3,5)$ and so on, but the question was to get a line that approximates such ordered pairs. In that case I represented the points as $y = mx + b$ and got $m$ and $b$ for the new line. I wonder if for the new problem which is a 3D space I also have to represent the ordered triplets as $z = ax + by + c$ or something like that.
I will very much appreciate any clue.
You are on the right track. Set up your equations like you would in 2 dimensions. \begin{align*} z_1 &= d + ax_1 + by_1 \\ z_2 &= d + ax_2 + by_2 \\ &\vdots \\ z_6 &= d + ax_6 + by_6. \end{align*}
From this, you can hopefully derive the normal equations as matrix products.