Question 612390
Look at this URL
http://www.mathsisfun.com/geometry/interior-angles-polygons.html

Read it and see how one can build on what you know about triangles and extend that into the general rule. 

In your specific case, 

{{{((n-2)*180)/n = 140}}}
So simplify and solve for n