From Vulgar Latin *eccum istaei, (genitive-)dative of *eccum iste. Compare Romanian acestei, Old French cestei.
Practice speaking and memorizing "costei" and many other words and sentences in Italian.