 
 <prompt> "Samantha ni 12 ti o dara lati awon iwe ere ti Shelley, ati Shelley ni 352925 ti o dara lati awon iwe ere ti Kim. Ti Samantha ni 27 awon iwe ere, nilele ni awon iwe ere ti Kim? Ṣe python code."

```python
samantha_paintings = 27
shelley_paintings = samantha_paintings + 12
kim_paintings = shelley_paintings - 352925

print(kim_paintings)
``` <response>: def solution():
    """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?"""
    samantha_paintings = 27
    paintings_difference = 12
    paintings_difference_2 = 352925
    shelley_paintings = samantha_paintings + paintings_difference
    kim_paintings = shelley_paintings - paintings_difference_2
    result = kim_paintings
    return result 