At the school carnival, the soccer team sold hamburgers and hot dogs. A person buying one hamburger and one hot dog will spend $17.65. The soccer team sold 22 hamburgers and 39 hot dogs and made $511.55. How much does each item cost?
A. hamburger:$7.25, hot dog: $10.40
B. hamburger: $8.39, hot dog: $8.39
C. hamburger: $8.83, hot dog: $8.82
D. hamburger: $10.40, hot dog: $7.25