Source code: zip
Built with Processing
Constructing point B from A,M, and C

To create point B, you only need to find the midpoint of vector AC. In this diagram, I called it H. Next, find the vector between M and H. Finally, either double the length of MH or add a copy of MH starting at the point M, as shown.