If they committed crimes together, not hard. If things like political crimes can be punished by death, even easier. If the king says “get me a pair of identical twins condemned to death” very easy. Go into a poor neighborhood, find a pair of twins and drag them in on an unsolved murder.