Consider the following sentence:
A and B are the same.
The verb here agrees in number with the subject, which is why we use are instead of is. Does this happen in Spanish too? Which of the following is correct:
A y B es lo mismo
A y B son lo mismo