He was sentenced to six months in prison for his part in the robbery
A.He received a six months in prison for his part in the robbery.
B.He received a six-month sentence for his part in the robbery.
C.For his participation in the robbery, he had been in prison for six months.
D.For his participation in the robbery, a prison had been given to him for six months.