I only taught Y8 maths, so this is likely to be wrong!
I worked out vectors of each line endpoint (eg M = 1/4 a)
Found out the midpoints of each line (added vectors and halved!)
Seemed to work - but I recommend you wait for someone who knows what they're doing!