First option, the salesperson will earn 40*20=800 dollars.
For second option, the person will earn the amount he sells/10.
For them to be equal the second salesperson have to sell 800*10=8000 dollars of items to earn that as much money as the first salesperson.