They reported that higher pressure tends to improve foam stability by increasing resistance to foam collapse and coalescence. However, it is important to note that excessively high pressure can also lead to a decrease in foam stability. The specific effects of pressure on CO2 foams depend on various factors, including temperature, foam quality, and surfactant concentration. Furthermore, they observed that higher temperatures can cause a decrease in foam stability. They found that as the temperature increased, the foam quality factor decreased, indicating reduced foam stability. Nagar Nadia Nasr et al conducted a comparative study on foam stability, investigating the impact of salinity and surfactant concentrations through bulk foam tests and sandpack flooding. They used the mixed anionic and amphoteric surfactant MFOMAX with pure nitrogen. Salinity variations of 0.5%, 2.0%, and 3.5%, as well as surfactant concentrations ranging from 0.1% to 1.0%, were examined.