Graph theory: determination of the maximum number of edges.

According to the following question, can someone explain to me the reason why the maximum number of edges is 5/2 | V |? I do not find that the particular reasoning in the solution is so useful because the maximum number is 5/2 | V |.

enter the description of the image here