When a person is convicted of a crime, they are sentenced to a punishment.