$$m  = { N{\cal B} - {\cal XY}  \over  N{\cal A} - {\cal X}^2 }$$