Put two and two together

Meaning: To understand something by connecting different pieces of information.

Example: When I saw the empty office, I put two and two together and realised they had moved.