An individual wishes to invest $5000 over the next year in two types of investment: Investment A yields 5% and investment B yields 8%. Market research recommends allocation of at least 25 % in A and at most 50% in B. Moreover, investment in A should be at least half the investment in B. How should the fund be allocated to the two investments?