I have a simple math question which I think has no solution at all:

How can I convert two numbers into one number, that when I'll tell my friend this number, he will be able to tell me what were the two original numbers.

Remark: All of the numbers are natural numbers between 0-255.

Thanks in advance,