Answer:
A is a knave
B is a knight
Explanation:
If A is telling the truth, then both are knights and B cannot be lying. However, since B claims that A is a knave, they can't be both knights, and there is no possible way that A is a knight.
If A is knave and thus is lying, they aren't both knights. Since B claims A is a knave, his statement can be true and thus B can be knight and A will be knave.