From Old Galician-Portuguese custar, costar, from Vulgar Latin *cōstāre, from Latin cōnstāre. Doublet of constar, a borrowing.
Practice speaking and memorizing "custar" and many other words and sentences in Portuguese.