a) For matrix A, let's check for linear dependence of the columns $\mathbf{c}_1, \mathbf{c}_2, \mathbf{c}_3$. We can test this by seeing if the determinant is non-zero.
\[ \det(A) = 1(4(-1) - (-6)(1)) - (-2)(2(-1) - (-6)(5)) + 3(2(1) - 4(5)) \]
\[ = 1(-4+6) + 2(-2+30) + 3(2-20) = 1(2) + 2(28) + 3(-18) = 2 + 56 - 54 = 4 \]
Since $\det(A) \neq 0$, the three columns are linearly independent. The rank is the maximum number of linearly independent columns, so $rank(A)=3$. Since the maximum possible rank is 3, A is full rank.
b) For matrix B, let the columns be $\mathbf{c}_1, \mathbf{c}_2, \mathbf{c}_3, \mathbf{c}_4$. Let's check for dependencies. Is $\mathbf{c}_3$ a linear combination of $\mathbf{c}_1$ and $\mathbf{c}_2$? We look for scalars $k_1, k_2$ such that $k_1\mathbf{c}_1 + k_2\mathbf{c}_2 = \mathbf{c}_3$.
\[ k_1\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} + k_2\begin{bmatrix} 1 \\ 1 \\ 3 \end{bmatrix} = \begin{bmatrix} 3 \\ 4 \\ 7 \end{bmatrix} \implies \begin{cases} k_1+k_2=3 \\ 2k_1+k_2=4 \\ k_1+3k_2=7 \end{cases} \]
Subtracting the first equation from the second gives $k_1=1$. Substituting into the first gives $1+k_2=3 \implies k_2=2$. Checking the third equation: $1+3(2)=7$. It holds. So, $\mathbf{c}_3 = \mathbf{c}_1 + 2\mathbf{c}_2$.
Since column 3 is dependent on columns 1 and 2, the rank is at most 2. Columns 1 and 2 are not scalar multiples of each other, so they are linearly independent. Thus, the maximum number of linearly independent columns is 2. $rank(B)=2$. The maximum possible rank is $\min(3,4)=3$. Since $2 < 3$, B is not full rank.