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