Both are correct.
In the first, AC/BC = EC/DC, so AC = 12·(20/16) = 15
In the second, x/9 = 2/6, so x = 9·2/6 = 3
6.5m questions
8.6m answers