a two-hour walk - adjective. two hours long - adverb of degree.
The adjectival form is hyphenated and singular.
a five-man team a two-inch segment a ten-dollar bill
(Adjectival forms are not pluralized in English. We don't say, for example, "the happies boys" or "the reds cars", but "the happy boys" and "the red cars". Th