The total number of matchings in triangle graph of a connected graph