solve tri2