Researchers solve longtime puzzle about how we learn