A compound subject consists of two or more nouns (Adam and Eve, cowboy and cowgirl), pronouns (your and I, he and she), or noun phrases (a basket of rotten eggs, a layer of dirt). Together, they form the subject of a sentence.
Two or more subjects or nouns that are combined to form a compound subject take a plural verb
If the nouns that make up a compound subject are joined by or and both are singular, a singular verb is used
If the nouns that make up a compound subject are singular and plural, the verb agrees with the noun nearer to it
Subjects can be infinitives. (An infinitive begins with to followed by the simple form of the verb.) Two infinitives joined by and to form a subject take the plural form of the verb
Subjects can be gerunds. (Gerund is a word that is derived from a verb but functions as a noun and ends in –ing). One gerund takes a singular verb. When two gerunds are joined by the conjunction and, the verb that follows is plural.