In the given figure, ABC is a right-angled triangle, right angle is at B. Find lengths AB and BC and hence AC.