The value of line segment AB is given in the problem. Line segment AB is half of the diagonal AC. Hence, if we want to solve for the length of the diagonal AC, we just multiply the length of line segment AB by 2. This is a parallelogram, therefore, we can say that the line segment AB is half of the diagonal AC.
The length of the diagonal AC is therefore 12 x 2 = 24.