As shown in the figure, circle of diameter 4 touches the other two circles and the bottom of the rectangle. Circle of diameter 3 touches the top at A and left side of the rectangle. Circle of diameter 6 touches the top at B and two other sides of the rectangle. Find the length of AB.