In the figure, points are given in two rows. Join the points AM, HE, TO, RUN, IF. How many line segments are formed?