It is given that ∠BAC=900 and AD⊥BC
Also, △ABD and △CBD are similar right angled triangle, thus with AD=y cm, BC=5 cm and DC=5 cm, we have,
AD2=BC×DC⇒y2=4×5⇒y2=20⇒y=√20⇒y=2√5
Similarly, △ABC and △DBA are similar right angled triangle, thus with AB=x cm, BC=9 cm and BD=4 cm, we have,
AB2=BC×BD⇒x2=9×4⇒x2=36⇒x=√36⇒x=6
Hence, x=6 cm and y=2√5 cm.