Rebecca had a piece of ribbon. She used 3/8 of it to tie a parcel. She used 1/5 of the remainder for a bookmark. Rebecca had 24 centimeters of ribbon left. What was the length of ribbon Rebecca had at first?