A polygon has 27 diagonals. How many sides does it have?
Let n be the number of vertices of the polygon.
then there are n sides.
Number of all connections between all the vertices =N=n(n−1)2
Thus, number of diagonals =N−n
=n(n−1)2−n
=n×(n−1−2)2
=n×(n−3)2
But actual given number of diagonals=27
Therefore, n×(n−3)2=27
n2−3n=54
n2−3n−54=0
n2−9n+6n−54=0
n(n−9)+6(n−9)=0
(n−9)(n+6)=0
(n−9)=0,(n+6)=0
⇒n=9,n=−6
⇒n=9 [Since, n can't be negative]
Therefore, there are 9 sides and 9 vertices.