# Carbon numbering in carbohydrates

Carbons have been numbered differently in two different pictures. What are the rules of carbon numbering?