To put it simply, if you were there, even if you did not commit the crime yourself, you will still be charged with the same crime as everyone else.

So even if there was only one gun, all three guys are going down for it, because they were all there at the time of the crime.

Obviously he needs to consult his lawyer, but I'm about 99% sure he won't be able to appeal his case.

An appeal happens when you think you have been sentenced unfairly, but he was not sentenced unfairly, he was sentenced according to the law.

The laws may not seem fair, but they are what they are.

Just be thankful the guy with the gun didn't pull the trigger, because if he had, your friend would be facing a felony murder charge.

Felony murder is when someone dies while you are committing a felony.

Like if you and your friend rob a gas station, and the store owner kills your friend, even though you didn't pull the trigger, they can still charge you with your friends death.

Pretty crazy stuff huh?