It's not completely straightforward. First you need to be clear as to what crime you're talking about. Is it the armed robbery, or the murder?
If it is the robbery, person 2 is likely to be charged as a principal in the second degree ("aiding & abetting") -- he is physically present, intended...