Fifty students were surveyed about their participation in hockey and baseball. The results of the survey were:

$\bullet$ $33$ students played hockey

$\bullet$ $24$ students played baseball

$\bullet$ $8$ students played neither hockey nor baseball

How many of the students surveyed played both hockey and baseball?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Fifty students were surveyed about their participation in hockey and baseball. The results of the survey were:

$\bullet$ $33$ students played hockey

$\bullet$ $24$ students played baseball

$\bullet$ $8$ students played neither hockey nor baseball

How many of the students surveyed played both hockey and baseball?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
15
Fifty students were surveyed about their participation in hockey and baseball. The results of the survey were:

$\bullet$ $33$ students played hockey

$\bullet$ $24$ students played baseball

$\bullet$ $8$ students played neither hockey nor baseball

How many of the students surveyed played both hockey and baseball?
train