Answer :
since you can spend $48 so you can buy 16 items in either ways . let x be for hot dogs and y for hamburgers.
8x+20y=48
20x+4y=48
6x+21y=48
22x+13y=48
8x+20y=48
20x+4y=48
6x+21y=48
22x+13y=48