There can be several solutions for this question,here is my take:
Consider A,B,C and Sam as the 4 people. Sam compulsorily gets 500$,then let A get 300$,B gets 100$ and C gets 100$. In this way all the necessary conditions are fulfilled. You can also have some other solution for this problem.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile