Translation:How much do dogs sleep on average?
You could say that, but it would not correspond to much but rather long.
Is länge for time while långt is for distance or some other measure or space?
As a native English speaker (and writer, as an attorney), I placed "on average" before "do dogs sleep" because it sounds and looks better to me. I think either way ought to be fine in the translation.