If Ram lives on the first floor, then Sham lives on the second. Sham does live on the second floor. Therefore
If Ram lives on the first floor, then Sham lives on the second. Sham does live on the second floor. Therefore Correct Answer Ram lives on the first floor