At a baseball game gina purchased 6 hotdogs and 3 nachos for $24. Frank purchased 8 hotdogs and 1 nacho for $23. How much is one hotdog and one nacho?