The flagpole is 7m high
The heights and the shadows are in the same ratio because the sun is shining from the same angle, so the triangles formed are similar.
Notice that Anita's height is twice as long as her shadow, so the height of the flagpole will be
2x3.5=7m