\(\begin{array}{c|c}height & 2 & 3 & 4 & 5 & 6 \\ \hline frequency &…