This is philosophy: We are studying about Locke's Theory
You and I have been kidnapped by a mad scientist. He tells us that, tomorrow morning he’s going to transfer all of your mental content—all your beliefs, memories, personality, everything—into my brain. And then he’s gonna move all of your mental content into your brain. Presumably, this is how he earned the title of mad scientist. But he also tells us that, after the procedure is complete—and your mental content is in this body, and my mental content is in yours—he’ll give one of the bodies a million dollar, and the other body will be tortured. And he’s decided to let you pick which body gets the tortured. And he’s decided to let you pick which body gets the torture and which one gets the cash. What do you decide? Your answer should give you a clue where you think your identity lies.