Allan wanted to become a machine salesperson. He was offered a job that paid him $40,000 a year plus a commission of $300 for every machine he sells. If Allan made &50,800 last year, how many machine did he sell?