Arnold bought 25 gallons of milk in gallon and half-gallon jugs. If he bought a total of 34 jugs, how many of each size did he buy?