Answer: $40,300
=============================================
Work Shown
x = salary before the raise
1.05x = salary after the 5% raise
1.05x = 42315
x = 42315/1.05
x = 40300
----------
Check:
5% of 40300 = 0.05*40300 = 2015
The salary has gone up by $2015
40300 + 2015 = 42315 is the new salary. The answer is confirmed.
Another way to confirm the answer is to write 1.05*40300 = 42315