Answer: The number was 9.
Step-by-step explanation:
Let the number be 'x;.
think of a number, multiply it by five and subtract three from the result :
According to Ashton, the expression would be :

Kamir tells Andrew to think of a number, add five and multiply the result by three:
According to Kamir, the expression would be :

At last, they get the same number :

Hence, the number was 9.