I think you are asking how they get that line from what is given above it.
As they say, they are adding together all possible inequalities of the form [MATH]a_i b_i + a_j b_j \ge a_i b_j + a_j b_i[/MATH] with [MATH]i\ne j[/MATH], and the inequality stated follows. On the LHS, each product [MATH]a_i b_i[/MATH] appears n-1 times (because any i is paired with each of the other n-1 j's), so they can factor that out. On the RHS, each product [MATH]a_i b_j[/MATH] appears once, so it is just a sum of those.
Is there a particular part of that that you don't understand?