A metal alloy is 25% copper. Another metal alloy is 50% copper. How many grams of the 50% copper alloy should be used to make 1000 grams of a metal alloy that is 45% copper?