How would you synthesize the following esters?

a. n-Octylacetate b.

How would you synthesize the following esters?

a. n-Octylacetate