Please Help me, write down the steps of solving both questions (geometry) thank you..

Answer:
ED = 20
Step-by-step explanation:
Because the triangles are similar,
EF/BC = ED/BA
EF = 12, BC = 6, BA = 10, ED = x
plug in the values
12/6 = x/10
2 = x/10
Multiply 10 to both sides
2*10 = x*10/10
20 = x
x = 20