After losing 57 legos, Nellie has 380 - 57 = <<380-57=323>>323 legos.
After giving her sister 24 legos Nellie has 323 - 24 = <<323-24=299>>299 legos
#### 299