Answer:
He bought 1 small bag and 6 large bags.
Explanation:
We can set up 2 equations with the given information.
5x+8y=45
x+y=6
We can rearrange the second equation to solve for x.
x=6-y
Now we substitute x for 6-y in the first equation
5(6-y)+8y=45
30-5y+8y=45
30+3y=45
y+10=15
y=5
x=1
He bought 1 small bag and 6 large bags.