you bought 10 gallon jugs of juice for $26 if apple juice cost $2 per gallon and orange juice costs $3.50 per gallon how many of each type did he buy

If x gallons of apple, then

2x + 3.50(10-x) = 26