I went to my favorite taco stand with some friends. We ordered a total of 8 tacos and 3 burritos. John handed the cashier 3 dollars to help pay for the burritos, Tim gave her 2 dollars to help pay for the tacos, and then I gave her the rest of the money for the burritos and the rest of the money for the tacos. As I did this, I noticed that the ratio of the amount of money I paid for burritos to the amount of money I paid for tacos was 2:5. Later we went back to the same taco stand. This time we bought 10 tacos and 4 burritos. I paid for the whole thing by myself, and this time I spent 18 dollars more than I had last time. How much money did I spend this time?