Let the number of gift be x
The total amount James has is $50
Since he must have $28 remaining
Thus, the amount he would spend must not exceed
Therefore,
If for every gift, $4 tax is included
The number of gift James can buy
Hence, the maximum number of gift James can buy is 5