△AED is a right angled triangle
So,
AD2=AE2+ED2
AE2=52−42
AE=√25−16
AE=√9
AE=3 cm
Similarly in △BFC we have
BC2=BF2+FC2
BF2=52−42
BF=√25−16
BF=√9
BF=3 cm
Since EFCD is a rectangle and have one pair of parallel sides equal so the other pair of parallel sides are also equal i.e EF=7=CD
∴AB=3+7+3=13 cm