James was asked to add 5 to a number and multiply the result by 5. He however first subtracted 5 from the number and then divided by 5, getting 5 as the answer. What is the correct answer?​