One week, Gabriel bought 2 bags of beans and 3 bags of rice. The next week, he bought 4 bags of beans and 1 bag of rice. Let b represent the cost of each bag of beans and r represent the cost of each bag of rice. Simplify the expression for the total cost, shown below.