It'd be pretty hard to get them to cast the spell at the exact same moment, but if they somehow managed to do it, I guess roll a 50/50 chance of which one it would go to. The other would get the same result as if it were in a creature's possession, as per the spell.
Edit: Maybe an opposed caster level check?