Raw materials A and B are used to make one of the target company's product the product must contain no more than 9units of A and at least 18units of B, it must cost no more than 300$, how much of each raw material should be used to maximize the weight?