Let x be the number of peanut bags Jeff sells. Since he earns $1.75 per bag the total amount he earns for selling x bags is:

Now, to this we have to add the $12 he gets paid, then the total amount he earns is:

To find out how many bags he has to sell to earn $52 we equate the expression above with the amount and solve for x:

therefore he has to sell 24 bags to earn $54.