How can i find the jordan form of a matrix, given the characteristic and the minimal polynomials? [tex](x-2)^3\(x+7)^2[\math] and [tex](x-2)^2\(x+7)[\math]?

How can i find the primary decomposition of a transformation with a 3*3 matrix, given a basis of it?