These are lengthy, as prison sentences aim to ensure that society has its retribution on offenders.
Individuals are deprived of their liberty and society is protected, at least for the duration of the prison sentence.
They provide retribution, deterrence, protection of society.
Link relate to right realism, because they believe in a tough stance on criminal behaviour.