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=
<gadget id="calculator">27+12</gadget>
<output>39</output>
39 paintings.
Kim has 39-8=
<gadget id="calculator">39-8</gadget>
<output>31</output>
31 paintings.

<result>31</result>