A foundry has been commissioned to make souvenir coins. The coins are to be made from an alloy that is 40% silver. The foundry has on hand two alloys, one with 50% silver content and one with a 25% silver content. How many kilograms of each alloy should be used to make 35 kilograms of the 40% silver alloy?