On two parallel lines a and b, points A1,A2,…,Am and B1,B2,…,Bn are chosen respectively, and all segments of the form AiBj are drawn (1≤i≤m,1≤j≤n). How many points of intersection will there be, given that no three of these segments intersect at the same point?