Is this a simple sentence?
I boutht a pen and a pencil.
I bought a pencil and (I bought) a pen. -- compound sentence (two indep. clauses)
I bought (a pencil and a pen) -- SVO; the bracketed part is the coordinated object of the verb; simple sentence with one clause
The question is: compound sentence or compound object. Both.