Answer:
Missing a little context here, but I'll assume it's a mom talking to a rebellious teen, or similar. (sorry if I got it wrong.)
I would assume that a frustrated mother is talking to a brand new adult that is now refusing to obey their mother. Or something like that. So, she is guilting them by saying how many years of her life she spent on them. All that time she could have spent doing something else, but instead, she invested it in them, and this is what she is getting out of it?