Final answer:
The number of hotdogs sold is 53 and the number of sodas sold is 109.
Step-by-step explanation:
Let's call the number of hotdogs sold x. Since the number of sodas sold is 56 more than the number of hotdogs sold, we can say that the number of sodas sold is x + 56. The total number of sodas and hotdogs sold is 162, so we can set up the equation x + (x + 56) = 162. Simplifying this equation, we get 2x + 56 = 162. Subtracting 56 from both sides gives us 2x = 106. Dividing both sides by 2, we find that x = 53. Therefore, the number of hotdogs sold is 53, and the number of sodas sold is 53 + 56 = 109.