Amanda answered 85% of the test questions correctly. If there were 40 questions on the test, how many did she answer correctly?