Spam going to wrong folder

With AOL & Apple Mail, 10.13.6, & SS 2.9.31…

Recently, when spam is received, it goes directly to the Junk folder and not the Spam folder as it formerly had (and as I prefer it).

What did I do wrong to bring this about and how do I put things to right?

It’s probably a server junk filter doing this. You could try turning it off.