Jamal needs three gallons of a mix that is two parts blue paint, three parts white paint and one part red paint. How many gallons of red paint will he need?