The question does not fix the length of \(AB\), yet implies that there is a unique answer. Therefore we can take \(AB\) to be any length we like and expect the right answer. If \(AB\) is 8m long, then the unshaded semicircle has no area. Therefore the shaded area is \(\tfrac12\pi\times4^2=8\pi\)m.
How would you calculate the area if you don't assume that the length of \(AB\) doesn't affect the area?