A mathematical model of a transient one-dimensional two-phase flow consisting of water, steam, and air is described. In the general case, a system of four partial differential equations of hyperbolic type was derived. The expression obtained for the velocity of sound is in good agreement with the results of the experiment. There is also good agreement with existing theories for the limiting cases of a missing phase or component. A numerical example demonstrating the application of the theory is shown.