A group of students takes their math teach out for lunch. If five have hamburgers and three have hot dogs, the bill will be $24.25. If three have hamburgers and five have got dogs, the bill will be $21.75. What is the price of a hamburger?