In order to provide 5V DC at 2A and 12V DC at 400mA then the output of the two secondary windings must be calculated using the following formula:-
Vac = Vout + Vreg + Vrect + Vripple x Vnom x 1
Rectifier efficiency Vlowline √2
Where Vout is the output voltage required
Vreg is the voltage drop of the regulator
Vrect is the voltage drop of the diodes
Vripple is the ripple voltage
Vnom is the nominal input voltage
V lowline is the minimum voltage the circuit must still operate stably at
In this question I have made assumptions as to the values of Vreg, Vrect, Vripple and the rectifier efficiency since no figures have been given
For secondary A Vac = 5 + 3 + 1.25 + 0.5 x 240 x 1
0.9 180 √2
Vac = 10.83333 x 1.3333 x 0.707
Vac = 10.2V
For secondary B Vac = 12 + 3 + 1.25 + 0.5 x 240 x 1
0.9 180 √2
Vac = 18.61 x 1.3333 x 0.707
Vac = 17.54
Secondary A can be rounded down to 10V, secondary B can be rounded down to 17V. Therefore the ratio of the windings will be 120:5:7