So you are looking for a matrix so that

and

?

You may not be able to do that. A linear transformation in two dimensions is determined bytwopoints, not three. If you multiply those out, each matrix equation will give two numerical equations so you will have 6 equations in the four unknowns, a, b, c, and d. Again, there may not be a solution.