This seems to be confusing you because of the double usage of "trial." Maybe I can help sort it out for you. A person or persons go through a "trial" when they face difficult problems to solve or difficult experiences to endure, e.g., a boy discovers his mother was in an accident and is in surgery in a hospital. This is a trial for the boy. The question is how will endure through his suffering. On the other hand, when a person breaks a law, they appear before a judge (and sometimes a jury) and the question of who or what was right or wrong is debated with evidence being presented on both sides of the argument. The outcome of the trial by a judge (and perhaps peers) answers the question.