texture mapping for n-sided polygon

The figures which I have given were not right.
So, you people, please try with those co-ordinates.