put two and two together
Draw the proper inference from existing evidence, as in Putting two and two together, it's not hard to guess who will be chosen for the lead role in the play. [Mid-1800s]