Suppose M kg of first alloy and N kg of second alloy is taken.
Amount of Iron in first alloy = 7M/12 kg
Amount of Silver in first alloy = 2M/12 kg
Amount of Silver in second alloy = N/3 kg
Ratio of Iron and Silver in mixture is 5 : 3.
(7M/12)/(2M/12 + N/3) = 5/3
(7M/(2M + 4N)) = 5/3
21M = 10M + 20N
11M = 20N
M/N = 20/11
ratio should be 20 : 11