The sum of the interior angles of a convex -gon is given by:
degrees.
So, since you know the sum of the angles (2700) you can say:
Now all you need to do is solve for to get the number of angles which is the same as the number of sides. This works whether the polygon is regular or not.