At a community barbecue, Mrs. Meyer and Mr. Montgomery are buying dinner for their families. Mrs. Meyer purchases 2 hot dog meals and 3 hamburger meals, paying a total of $40. Mr. Montgomery buys 1 hot dog meal and 1 hamburger meal, spending $15 in all. How much does one hot dog meal cost?