Left is the upright heart radical 忄, the side form of 心. It places the word among mental and emotional activity, here turning something over in the mind.
Right is 寸, an inch, giving the sound cǔn and a neat overtone of measuring. The heart that measures is a mind that weighs and estimates, the meaning of 忖.