The system capacity of a deterministic flow network is the maximum flow from the source to the destination. In a single-commodity stochastic-flow network (branches all have several possible capacities, and may fail), the system reliability, the probability that the maximum flow is larger than or equal to a given demand, is an important performance index to measure the quality level of a network. In a two-commodity stochastic-flow network, different types of commodities are transmitted through the same network simultaneously, and compete for the capacities. We concentrate on the reliability problem for such a network subject to the budget constraint. This paper defines firstly the system capacity as a pattern. We propose a performance index, the probability that the system capacity is less than or equal to a given pattern subject to the budget constraint, to evaluate the system performance. A simple algorithm based on minimal cuts is proposed to generate all maximal vectors meeting the demand and budget constraints. The performance index can then be computed in terms of all such maximal vectors.