The average risk factor, weighted by the amount invested, should be no greater than 0.05. At least one-quarter of the total portfolio is to be allocated to Type A investments. At least one-quarter of the total portfolio is to be allocated to Type B investments. How much should be allocated to each type of investment to obtain the maximum return?