Melly, you can get a 100% chance to win if you buy enough items but to maximize profit it actually isn't best I this case to buy enough items to give yourself a 100% chance of winning after you solve for the optimal value.
iex, I just wrote down the solution for part 2 but will not post just yet, I'll let ya see how u did