The length of each person's sentence  is determined by the judge. who may be following sentencing guidelines or a mandatory sentence imposed by state law.The judge may take into consideration other factors such as the role of each person in the commission of the felony, with the more culpable person receiving a longer sentence.  A prior criminal record is also a factor in determining the length of a sentence.  If one person has a prior criminal record of violent felonies and the other person has a prior record of non-violent felonies or just misdemeanors, the second individual may receive a lesser sentence than the person with a record of violent felonies.