Rescue from a lengthy prison sentence

In the case in which two people were apprehended with a loaded pistol, advice was given that included an examination of the prosecution's exhibits. It turned out that there were significant problems with the weapon, which reduced the severity of the "carrying" offense, and together with other facts led to a relatively lenient sentence.
Explain to the ear, carrying an illegal weapon was punishable by 10 years in prison and in addition could be attributed a liaison offense, which was punished another 5 years in prison.
Below is a link to an article about the case:
https://www.mako.co.il/news-law/2021_q1/Article-1fedb99ea6ec771026.htm