"The sum of a number and 12..." The word sum is the keyword of what operation we are doing. We are doing addition. When we continue the phrase we know we are adding a number (an unknown) and 12.
So, on the left-hand side we have x + 12.
"... is 20" In mathematics, the word 'is' can mean equal. So, the left-hand side will equal the number 20.