Mass Air Flow meter and Air Flow Meter, I know the MAF is more expensive. I am not 100% sure, but I can make an educated guess that a mass air flow sensor measures the amount of the air that passes through the airbox in general and the AFM measures the amount of air passing through the box at a given moment.
AFM has a movable plate that opens farther the more air passes through it, opening the plate and increasing the resistance in the potentiometer built into it, sending an immediate signal to the computer, when the MAF is some sort of an integrated circuit that reacts to air AFAIK
I think M50s have the MAF sensors
-Artem