You can 
put this solution on YOUR website!   
Hi
total of 23 bags
Let x and (23-x)represent the number of bags  pretzels & chips respectively
Question states***CENTS makes sense
 50x + 25(23-x) = 775 CENTS
Solving for x
      25x = 200
        x = 8, bags of pretzels.  15 bags of chips.  (23-8)
CHECKING our Answer***
  50*8 + 25 * 15 = 400 + 375 = 775  or $7.75