For number puzzles, if the output value is significantly larger than the sum of the inputs, think of exponents (squares or cubes) or multiplication.
Here, \(2+4=6\) but the result is \(20\) (near the square of \(4\)). This immediately hints at checking squares!