A goldsmith has two gold alloys. The first alloy is 25% gold and the second is 55% gold. How many grams of each should be mixed to produce 40 grams of an alloy that is 43%?