The atomic masses of ^A_Z X and ^A_{Z+1} Y are things you can look up in a table of atomic masses. For example, let's take carbon twelve, ^{12}_6 C. You can look that up and you'll find that the atomic mass is exactly 6 grams per mole (and divide by Avogadro's number to find the mass of a single atom). But that number assumes that the ^{12}_6 C atoms under consideration all have full shells of electrons (in this case 6). If you want to measure the atomic mass of a ^{12}_6 C ^+ ion, with only 5 electrons, you'll need to subtract off the mass of an electron from the value found in the table.
The change in mass, \Delta m is the atomic mass of the parent atom minus the atomic mass of everything involved after the decay.
So what is left after the decay? The atomic mass of ^A_{Z+1} Y with the electron subtracted off, and the atomic mass of the beta particle.I'm not sure I understand. m_e is the electron mass.
The byproducts of the beta decay consist of a positive ion and an electron. But the mass of ^A_{Z+1} Y, which you can look up in a table, is not the mass of a positive ion. It's the mass of a neutral atom. So to find the mass of the positive ion, you must take the mass of ^A_{Z+1} Y and subtract off the mass of an electron.