A scientist makes a type of brass by mixing copper and zinc in the ratio of 8 to 2. How many kilograms of copper and zinc does he need to make 40 kilograms of brass?