As Drew Hall pointed out in a previous answer, GL_POLYGON cannot draw concave polygons. You can draw this shape with single triangle fan, though. Try this:
glBegin(GL_TRIANGLE_FAN);
glVertex2f(x+25,y+25);
glVertex2f(x,y+25);
glVertex2f(x,y);
glVertex2f(x+50,y);
glVertex2f(x+50,y+75);
glVertex2f(x+25,y+75);
glEnd();