Brittney is selling candy bars and bags of popcorn for her school fundraiser. Candy bars cost $1.25 each and bags of popcorn are $0.75 each. If she sold 22 candy bars and made a total of $47.75, how many bags of popcorn did she sell?​