Magnetic Field of a Hexagon | Physics Problem

Click here to read the complete problem statement.

What is the point of giving this hint when we need a formula for the magnetic field of a finite wire.