The volume of the cuboid is calculated by multiplying its length, breadth, and height:
\[
\text{Volume of cuboid} = 9 \times 8 \times 2 = 144 \, \text{m}^3
\]
Next, we calculate the volume of each cube with a side length of 2 m:
\[
\text{Volume of one cube} = 2^3 = 8 \, \text{m}^3
\]
Step 1: Find the number of cubes.
The number of cubes formed is the total volume of the cuboid divided by the volume of one cube:
\[
\text{Number of cubes} = \frac{\text{Volume of cuboid}}{\text{Volume of one cube}} = \frac{144}{8} = 18
\]
Step 2: Conclusion.
Therefore, the number of cubes formed is 18.