Here we go
Δ EDC ~ Δ EBA
So
EC / DC = EA / BA
EC / 8 = 5 / 4 multiply both sides by 8
EC = 8 * ( 5 /4)
EC = 40 / 4
EC = 10
You are right, thank you CPhill