question: 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?
answer: Shelley has 27+12=<<27+12=39>>39 paintings.
  Kim has 39-8=<<39-8=31>>31 paintings.
  #### 31