<human>:  Caroline has 40 pairs of socks. She loses 4 pairs of socks at the laundromat. Of the remaining pairs of socks, she donates two-thirds to the thrift store. Then she purchases 10 new pairs of socks, and she receives 3 new pairs of socks as a gift from her dad. How many pairs of socks does Caroline have in total?
<bot>: How many pairs of socks does Caroline have after losing some socks? ** After losing some socks, Caroline has 40 - 4 = <<40-4=36>>36 pairs of socks
How many pairs of socks does Caroline donate? ** Caroline donates 36 * (2/3) = <<36*(2/3)=24>>24 pairs of socks to the thrift store
How many pairs of socks does Caroline have remaining? ** After donating some socks, Caroline has 36 - 24 = <<36-24=12>>12 pairs of socks remaining
How many pairs of socks does Caroline have in total? ** After getting new socks, Caroline has 12 + 10 + 3 = <<12+10+3=25>>25 pairs of socks
#### 25