Length of segment parallel to an edge
Observe triangles $ADE$ and $ABC$ are similar. Since $BC || DE$ and $BF$ is an angle bisector of $\angle \, A$ $$\angle \,DBF = \angle \, CBF = \angle \, DFB$$ so triangles $BDF$ is isosceles with $BD = DF$. Analogously $CE=EF$. Hence the perimeter $P_{ADE}$ of triangle $ADE$ is $$P_{ADE} = AD+DF+AE+EF = AD+DB + AE+EC = AB + AC = 26 + 34 = 60$$ The perimeter $P_{ABC}$ of $ABC$ is $$P_{ABC} = AB + BC+AC = 26+4=+54 = 100$$ By the similarity of $ADE$ and $ABC$ $$\frac{DE}{BC} = \frac{P_{ADE}}{P_{ABC}} = \frac{60}{100} = \frac{3}{5}$$ Since $BC = 40$ $$DE = \frac{3}{5} \, 40 = 24$$
You can do this with the angle bisector theorem used twice.
First observe that $AF$ bisects $\angle BAC$, (because angle bisectors are concurrent) so continue $AF$ to meet $BC$ at point $G$. Then $G$ divides $BC$ in the ratio 26:34 so $BG = \frac {40}{60} 26 =\frac {52}{3}$
Then $BF$ divides $AG$ in the ratio $26:\frac{52}3 = 3:2$ giving $AF:AG$ as $3:5$. Thus through similarity of $\triangle ABC$ and $\triangle ADE$ the ratio between $DE$ and $BC$ is also $3:5$ i.e. $\fbox{$DE=24$}$
Try with Heron's formula to get the area of the big triangle two ways:
First calculate it as a function of the three sides, using Heron's directly.
Calculate the height of the triangle ABC $=h_{ABC}$ from the areas just calculated.
Then calculate the radius of the incircle, using this example and knowledge of the relationship of the incircle to the bisected angles of the triangle.
- subtract this radius from the height of ABC $=h_{ABC}$ to get the height of triangle ADE $=h_{ADE}$.
Now use proportionality of similar triangles:
$$\frac{h_{ADE}}{h_{ABC}}= \frac{|DE|}{40}$$