"a.A is a Knight and B is a Knave."
Then that'd be a lie. Knights can't lie so this is impossible.
"b.A is a Knave and B is a Knight."
That'd be a lie. Knaves lie. This is possible.
"c.Both are Knaves."
Then that'd be the truth. Knaves can't tell truth so this is impossible.
"d.Both are Knights."
Then that'd be a lie. Knights can't lie so this is impossible.
....
but to do it directly.
If "we are both knaves were true" then A is knave telling the truth. That's impossible so it is a lie. So A is lying so A is a knave. But as it is a lie they are not both knaves. So B is not a knave. So B is a knight.