added the solution to finding the linear transformation