I have a doubt about if the articles should be used on both sides of 'and' or just on one side.
For Example: [1] There were a pen and a pencil. OR [2] There were a pen and pencil.
I have a doubt about if the articles should be used on both sides of 'and' or just on one side.
For Example: [1] There were a pen and a pencil. OR [2] There were a pen and pencil.
Depends on the context. In either case, it should be "There was..." and not "There were..."
The article is usually used on both sides, but sometimes it's okay to omit the article on the right hand side if the two objects form a known "word pair" (couple examples below).
There's a cup and a glass on that table.
If everyone could grab a knife and a fork, that would be great.
If everyone could grab a knife and fork, that would be great.
I'd like to buy a suit and a tie, please.
I'd like to buy a suit and tie, please.
In a construct "X and Y", if you have an modifier Z that both applies to X and Y, the form "Z X and Y" will work and will be the same as "Z X and Z Y".
There is a small possibility for ambiguity if context won't fill in the details.
I took the red chair and table to the shed.
Of course you can specify Z in front of both X and Y if you want for emphasis or clarity.
I took the red chair and red table to the shed.
It's the same for articles. Unlike adjectives, there won't be any ambiguity, "the X and Y" will almost always be taken as "the X and the Y."
I took the chair and table to the shed = I took the chair and the table to the shed.
I took the red chair and the red table to the shed.
There were a pen and a pencil.
There was a pen and pencil.
Both the sentences are grammatical.
In the former, you are referring to two things individually, whereas in the latter, you are referring to a unit consisting of a pen and a pencil.