contestada

How is por being used in the following sentence?
Yo estudié por cinco horas.
OA. To indicate a length of time
OB. To talk about an exchange
OC. To give a reason
OD. To say for whom something is done