The general gas equation, also known as the ideal gas law, was derived from Boyle's and Charles' laws. Boyle's law states that the pressure of a gas is inversely proportional to its volume, while Charles' law states that the volume of a gas is directly proportional to its temperature. The general gas equation combines these two laws along with Avogadro's law, which states that equal volumes of gases under the same conditions of temperature and pressure contain the same number of molecules. The equation is PV = nRT, where P is pressure, V is volume, n is the number of moles, R is the gas constant, and T is temperature in Kelvin.