Meet the islanders
On the island of Knights and Knaves, every inhabitant is one of two types: a knight, who always tells the truth, or a knave, who always lies. You meet two islanders, A and B. A says: 'B is a knave.' B says: 'A and I are the same type.' Who is what?
Try the cases. Suppose B is telling the truth: then A and B really are the same type, so A is a truth-teller too - but A says B is a knave, which would make B a liar. Contradiction. So B is lying, which means A and B are different types, which makes A a knight - and A's statement checks out: B is indeed a knave. Case closed.
The question that defeats lying
The island's most famous puzzle puts you at a fork: one road leads to the village, one to the swamp, and a single islander stands by - type unknown. You may ask one yes-or-no question. The classic solution: ask, 'What would the other type of islander say is the road to the village?' - or, when two islanders stand there, ask one what the other would say.
Either way the answer passes through exactly one truth and one lie. A knight truthfully reports the knave's lie; a knave lies about the knight's truth. Both give you the wrong road - so you simply take the other one. Perfect lying turns out to be perfectly informative, once you route it through itself.
Try it yourself
Write your own two-islander puzzle: pick types for A and B, write statements that fit, then erase your notes and solve it fresh by testing cases. If both type-assignments survive your checks, your statements are too weak - strengthen one and test again.
A good starter: A says 'We are both knaves.' That single statement cannot come from a knight (it would be false) nor from a knave whose partner is also a knave (it would be true) - so the speaker must be a knave with a knight for a partner. See if you can find a second statement that pins down the partner too.

