If person A asks person B to commit a crime, and actually intends that the crime be committed, then A is legally responsible. If the crime is actually committed, then person A is guilty of being an accessory to the crime; if it is not committed, then person A is guilty of solicitation.
So it just matters about person A's intent? If person A jokingly set out an elaborate plan by which to commit a crime, and person B followed that plan and actually commits teh crime, but person A was joking, is person A not responsible at all?
Could person B expect any leniency because person A convinced him to commit the crime? Would the punishment be any less for person B if they commited a crime they had thought to do themselves, versus if they had commited a crime person A had suggested/planned?