Complementary triangular forms for pairs of matrices and operators door