The metal contents of two groups of galaxies