YA Vs MG

Let’s get this settled once and for all. Where is the line between YA (young adult) and MG (middle grades) literature? What ages are we talking here, let alone themes and appropriateness? (Please note that this debate has been worn out just about everywhere else on the internet, but I have not settled it for…