In a row of girls, Rita and Monika occupy the ninth place from the right end and tenth place from the left end respectively. If the interchange their places, then Rita and Monika would occupy seventh place from the right and eighteenth place from the left respectively. How many girls are there in the row?