Triangle from Its Median and Two Sides

Construct a triangle ABC with the given median BM, AB = c and BC = a.