As D lies on BC, the distance from D to BC is 0.
If we let the distance from D to AB be x, then in the right triangle,
This means the distance from D to side AB is 4.
We can note that
, meaning y=4 as well, and thus the distance from D to side AC is 4