An insight into Cournot and Nash equilibria both for a market clearing price and a pay as bid price