A square tile, a regular hexagon tile, an equilateral triangle tile, and a regular n-sided polygon tile share a common vertex. There are no gaps or overlaps between the tiles. What is n?

It's another square; so, n = 4