In a row of 30 children, M is 6th to the right of R, who is 12th from the left end. What is M's position from the right end of the row?