Riley and her children went into a movie theater and she bought $51 worth of bags of popcorn and drinks. Each bag of popcorn costs $5 and each drink costs $6. She bought twice as many drinks as bags of popcorn. Determine the number of bags of popcorn and the number of drinks that Riley bought.