D is on side AB of ABC. We know ABC ~ACD and we know all the marked side lengths.
What is the length of AB?
https://latex.artofproblemsolving.com/7/4/a/74a74a3bc1d11ec4c8039dc5da5a4d88c55f07f5.png
The answer is 18.