Three-fourths of the students in Mr. Shearer's class have brown hair and six-sevenths of his students are right-handed.  If Mr. Shearer's class has 28 students, what is the smallest possible number of students that could be both right-handed and have brown hair?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Three-fourths of the students in Mr. Shearer's class have brown hair and six-sevenths of his students are right-handed.  If Mr. Shearer's class has 28 students, what is the smallest possible number of students that could be both right-handed and have brown hair?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
17
Three-fourths of the students in Mr. Shearer's class have brown hair and six-sevenths of his students are right-handed.  If Mr. Shearer's class has 28 students, what is the smallest possible number of students that could be both right-handed and have brown hair?
train