4. Let the linear transformation $T: \mathbb{R}^2 \to \mathbb{R}^3$ be defined by $T(x, y) = (x, 2y, xy)$. Find the matrix for $T$ relative to the bases $B = \{(4, 2), (3, -1)\}$ and $B' = \{(1, 0, 0), (0, 1, 0), (0, 0, 1)\}$, and use it to find $T(1, 3)$.