math
posted by dina on .
suppose walmart stock is selling at $59 a share and mattel stock is selling at $28 a share. Amy waller has a maximum of $6000 to invest. she wishes to purchase four times as many shares of walmart as of mattel. only whole shares of stock can be purchase. how many shares of each will be purchase? and how much money will be left over?

add up dollars spent
59w + 28m <= 6000
w = 4m
59(4m) + 28m <= 6000
264m <= 6000
m = 22
w = 88
59w + 28m = 5192 + 616 = 5808
If she bought 1 more share of mattel, she'd have to bu 4 more shares of walmart, exceeding $6000