Two monoatomic ideal gases A and B occupying the same volume V