Consider the following points:
The triangles ABC and DEF are similar, because their are both right triangles, and we can assume that the sunlight hits both Roger and the flagpole with the same angle.
This means that the corresponding legs are in proportion, which means, in words,
[tex] \text{Roger's height } : \text{ Flagpole's height } = \text{Roger's shadow } : \text{ Flagpole's shadow} [/tex]
If you plug the known values, and let x be the flagpole's height, you have
[tex] 5 : x = 3.5 : 14 \iff x = \dfrac{14\cdot 5}{3.5} = 20 [/tex]