Ignoring the grammatical mistake in the 2nd sentence (costs not cost). The sentences mean the same the only diffence is the register and as we don't know how you intent to use it, they are both correct. Context?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.