cotton on to

Upper Intermediate (B2) informal

To slowly figure out a particular thing or idea.

"The children soon cottoned on to the fact that presents were hidden in the wardrobe."