solve PE6