max edge possible when a graph is complete , and there is 2 component
so by splitting it 1 vertex in one component and in other 8 vertices in other component we can have max edges .
in 8 vertices component it must be complete so it can have max edge ,
so max edge 8C2 = 28 edges