Samantha has 12 fewer paintings than Shelley, and Shelley has 8 paintings more than Kim. If Samantha has 27 paintings, how many paintings does Kim have?
Shelley has 27+12=<<27+12=39>>39 paintings.
Kim has 39-8=<<39-8=31>>31 paintings.
#### 31
<|Human|>

Samantha has 12 fewer paintings than Shelley, and Shelley has 8 paintings more than Kim. If Samantha has 27 paintings, how many paintings does Kim have?

<|Assistant|>

Shelley has 27+12=<<27+12=39>>39 paintings.
Kim has 39-8=<<39-8=31>>31 paintings.
#### 31