A goldsmith has two gold alloys. The first alloy is 400 percent gold; the second alloy is 60 percent gold. How many grams of each should be mixed to produce 20 grams of an alloy that is 52 percent gold?