Very very simple matrix multiplication formula, don't go harsh on me please :) So I'm studying from "Linear algebra and it's applications 3rd edition" - Gilbert Strang.
He gave out this formula to find 
$$
\sum_{j=1}^n a_{i,j}x_j
$$
matrix multiplication of the matrices below
$$
\left[
\begin{array}{ccc}          
1 & 4 & 7\\             
2 & 5 & 8\\
3 & 6 & 9
\end{array}  
\right]
$$                            
$$
\begin{bmatrix}
u\\
v\\
w\\
\end{bmatrix}
$$
Let the first matrix be A and second matrix be x and solution be b
$$
Ax= B
$$
once we apply the summation formula to find 
$$
Ax
$$
We see that for each row of a (i in this case) x is multiplied by its row.
for instance 
$$
a_{i,1}
$$
will get us the first column of the A. so here (according to this summation formula) we will multiply the first column with the first row of X.
and wouldn't this produce =
$$
6u = b_{1,1}\\
15v = b_{2,2}\\
24w = b_{3,3}\\
$$
Above is wrong, i know but i believe this would produce the equations above. Equation below should be produced however, 
$$
u+4v+7w = b_{1,1}\\
2u+5v+8w= b_{2,2}\\
3u+6v+9w = b_{3,3}\\
$$
So I don't believe this summation formula in the textbook is flawed, but what I'm asking is how it is done? 
Normally while multplying matrices I would multiply the first row of the matrix on the left with each column of the matrix on the right, and that would give out that first row of the result matrix.
BUT IN THIS CASE --->
But here something different than that done, first column of the matrix on the left is multiplied with the first row of the matrix on the right? 
I've never heard of a matrix multiplication like that, what will be the output of such multiplication and how would be the output produced .
My question is very easy, but I'm really bad on matrices, I'm not bad on math in general but I've always used the way I descriped for multiplying matrices for such a long time. So I got a little confused here, any help will be appreciated :)

Example: Take $i = 2$, i.e. row number $2$. Then
$$\sum\limits_{j=1}^n a_{i,j} x_j = \sum\limits_{j=1}^3 a_{2,j} x_j = a_{2,1}x_1 + a_{2,2}x_2 + a_{2,3}x_3 = 2u + 5v + 8w. $$
This is because $(x_1,x_2,x_3) = (u,v,w)$ and $n = 3$ is the number of columns of the matrix $A$.
