After keeping 10 cookies for herself, Karen has 50 - 10 = <<50-10=40>>40 cookies.
After giving cookies to her grandparents, Karen has 40 - 8 = <<40-8=32>>32 cookies.
Karen can give each person in her class 32 / 16 = <<32/16=2>>2 cookies.
#### 2