Problema Solution
Suppose walmart stock is selling at $59 a share and Mattel stock is selling at $28 a share. Amy has a maximum of $6000 to invest. She wishes to purchase four times as many shares of Wal-Mart as of Mattel. Only whole shares of stock can be purchased. How many shares of each will she purchase? How much money will be left over?
Answer provided by our tutors
let
w = the number of walmart stocks
m = the number of Mattel stocks
Amy has a maximum of $6000 to invest thus
the money invested in walmart stocks + money invested in mattel stocks <= 6000
59w + 28m <= 6000
she wishes to purchase four times as many shares of Wal-Mart as of Mattel
w = 4m
by substituting w = 4m in 59w + 28m <= 6000 we get
59*4m + 28m <= 6000
264m <= 6000
m <= 6000/264
m <= 22 192/264
thus she can purchase m = 22 Mattel stocks and w = 4*22 = 88 walmart stocks.
How much money will be left over?
6000 - (88*59 + 28*22) = $192
she will have $192 left.