Figure for flagpole shadow:
Figure for your shadow:
You asume that the triangles are similar triangles.
In similar triangles the ratio between corresponding sides is the same:

You use the equation above to find the lenght of the flagpole (x):

The lenght of the flagpole is 15.71 feet