A metallurgist has an alloy with 10​% titanium and an alloy with 30​% titanium. He needs 100 grams of an alloy with 24​% titanium. How much of each alloy should be mixed to attain the 100 grams of alloy with 24​% ​titanium?