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 or or and to form a subject take the singular or plural form of the verb.
Subjects can be gerunds. (Gerund is derived from a verb that ends in –ing but functions as a noun). One gerund takes a singular verb. When two gerunds are joined by the conjunction and, the verb that follows is plural.