For example your cousins child would be your first cousin once removed

I found out last year that I was distantly related to one of my classmates. My great-great-great grandmother was his great-great grandmother. (I think.) What would that make us? I could never figure it out.