A trust fund is planning to invest up to P600,000 in two types of bonds: A and B. Bond A carries a dividend of 25% and Bond B carries a dividend of 30%. According to the fund rules, no more than P400,000 may be invested in Bond B, while at least P150,000 must be invested in Bond A. The goal is to determine the optimal amount to invest in each type of bond in order to maximize the fund's return.