The matrix

has eigenvectors , and with corresponding eigenvalues 4, 1 and 2 respectively.

The matrix B has eigenvalues 2, 3, 1 with corresponding eigenvectors

, and

Find a matrixPand a diagonal matrixDsuch that

Not required to evaluate

A start and some hints would be very nice.