I believe it means "How much cost the carpet?", but why adding denn?
I know that denn, in a normal context, means because.
German Language Stack Exchange is a bilingual question and answer site for speakers of all levels who want to share and increase their knowledge of the German language. It's 100% free, no registration required.Sign up to join this community
The word »denn« in this sentence is a modal particle. This is a part of speach that does not exist in English and therefore can't be translated. For a more detailed answer see: How can I translate the adverb "doch" in sentences?