# But Which Two Digits?

Let $$a$$ and $$b$$ be distinct single-digit positive integers such that

• the last digit of $$a\times a \times a$$ is $$b$$, and
• the last digit of $$b\times b \times b$$ is $$a$$.

What is $$a+b$$?

×