A polygon with n sides has a formula for calculating its diagonals as 1/p * n * (n-q), where p and q are integers. The discussion identifies that for a polygon, q equals 3 and p equals 2, leading to the conclusion that the formula simplifies correctly. Participants explore the number of diagonals for polygons with varying sides, confirming that a four-sided polygon has two diagonals and a ten-sided polygon has thirty-five. The reasoning involves calculating the diagonals from one corner, excluding adjacent corners and itself, resulting in n-3 diagonals per corner. Understanding this method allows for a systematic approach to finding the values of p and q without relying on trial and error.