A  5 gallon mixture contains 40% acid. A 3 gallon mixture contains 50% acid. What percent is obtained by putting the two mixtures together?