Exercise. Closure of truncated types under internal sums [01IK]

Let A be an n-truncated type and let x:A\vdash B[x]~\mathit {type} be a family of n-truncated types. Verify that the sum {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]} is n-truncated.