A line parallel to a triangle's side splits AB into lengths of x - 5 and x + 2. The other side, AC, is split into lengths of x and x + 12. What is the length of AC?
A) 12
B) 24
C) 36
D) 48