There is a formula that computes the integral of Hasdorff measures of level sets of a given function. It goes under the name "coarea formula". It is a generalization of a change of variables formula from multivariable calculus and of course the proof of the general formula proceeds by first showing it for linear functions. You can find all details for example in these lecture notes.
As you can see on page 13. the formula for linear mapping $A$ reads $$\int_{\mathbb{R}^m} \mathcal{H}^{m-n}(S \cap A^{-1}(y)) \mathrm{d}y = \sqrt{\mathrm{det}(LL^T)}\mathcal{L}^n(S),$$$$\int_{\mathbb{R}^m} \mathcal{H}^{n-m}(S \cap A^{-1}(y)) \mathrm{d}y = \sqrt{\mathrm{det}(LL^T)}\mathcal{L}^n(S),$$ where $\mathcal{H}^{m-n}$$\mathcal{H}^{n-m}$ denotes the $(m-n)$$(n-m)$-dimensional Hausdorff measure, $\mathcal{L}^n$ denotes the $n$-dimensional Lebesgeue measure, $A^{-1}(y)$ denotes the set $\{x\in\mathbb{R}^n|Ax=y\}$ and $L$ is given by factoring the mapping $A$ as $A = LPQ$ where $Q$ is orthogonal, $P$ is projection onto the first $m$ coordinates and $L$ is a regular mapping $\mathbb{R}^d\to\mathbb{R}^d$$\mathbb{R}^m\to\mathbb{R}^m$.