Option (c) is grammatically incorrect because the sentence contains a subject-verb agreement error. The subject of the sentence has to agree in number with the verb. Here, two subjects are given (Ram and Sham) and together they make a plural subject, so the verb used with them should also be plural in nature. 'Does' (singular verb) should be replaced by 'do' (plural verb) in the sentence.
Hence, (c) is the correct answer.
Note:
Subject-Verb Agreement: Matching up singular or plural subjects with singular or plural forms of a verb is part of the process called agreement. This can be understood better by the examples given: - She likes cooking. [singular subject and verb] -- They like to cook vegetables. [plural subject and verb]