So triangles bcd and aec are similar. so this makes lines ac and bc similar and lines db and ae similar.
to solve this problem, we just need to do some algebra

now we substitute those values in

which results in

then multiply both sides by 12

soon you should get x=2 with the length of ae being 16