Once the book is identified, le can replace it as the direct object. Unlike the article in le livre, this le has no noun after it. In an ordinary affirmative sentence with one simple verb, put the object pronoun before that verb: Je le prends, not Je prends le. The subject still controls the verb: je … prends.
Choose la for an identified feminine singular object, such as la clé or la veste. The object's grammatical gender controls this choice; the person taking it does not.
Before a vowel or silent h, both object le and la become l’. Write the apostrophe directly next to the verb: je l’achète. The referent still has its original gender even though the shortened pronoun does not show it.
Choose les for several identified objects, masculine or feminine. Compare le livre → le and les livres → les. Only the object changes here; the verb remains the je form.
With the near future, put the object pronoun just before the infinitive it belongs to: Je vais le chercher. The same position works after pouvoir: Tu peux la prendre. Do not place it before vais or peux in these patterns.