In the given figure, ABCD is a trapezium in which AD∥BC,∠ABC, AD=16 cm, AC=41 cm and BC=40 cm. Find the length ofAB