Answer:
To punish the person and to serve as a warning to others.
Explanation:
First, they serve the goal of deterring future crime by both the convict and by other individuals contemplating a committal of the same crime. Second, a sentence serves the goal of retribution, which posits that the criminal deserves punishment for having acted criminally.