A 29-year-old man was sentenced to two life imprisonment terms for raping an an eight year-old girl.