The given figure can be redrawn as:
In the above figure, triangle BAD is similar to triangle CBD.
Therefore, the ratio of corresponding sides of the triangles CBD and ABD will be equal.
Hence,
Now applying Pythagoras theoerm to right triangle BAD,
Solve the equation to find m.
Therefore, the value of m is 10.