So we know that

and

Now we have a system of equations for the transformation of the basis vectors

So if we subtract the 2nd equation from the first we get

subbing into either equation gives

Now these are the columns of the transformation matrix.