Hello everyone, I've been struggling on this problem for quite some time. It would be appreciated if you could help. Thanks.

(The website is the diagram, it is a screenshot)

In the diagram below, triangle ABC has been reflected over its median AM to produce triangle AB'C'. If AE = 6, EC =12, and BD = 10, then find AB.

prntscr. com/26lgjv

Thank you for your time.