Amy was asked to multiply a number by 8 and then add 5.
Instead, she added 8 to the number, then multiplied the result by 5.
This gave her 2015.
What would the answer have been if Amy had followed the instructions correctly?
This problem is adapted from the World Mathematics Championships