Question : Let $n$ blue points $A_i$ and $n$ red points $B_i$ ($i=1,2,...,n$) be situated on a line. Prove that $$\sum_{i,j}A_iB_j\ge \sum_{i<j}A_iA_j+\sum_{i<j}B_iB_j$$
I tried inducting on $n$ but cant proceed in the inductive step ( as usual ). Please help, if there is a direct method of approach please give hints. Is this true if all the blue points were on a different line?