Solve the following word problems by writing an equation and then solving algebraically:
During the 2007 baseball season, Wade was up to bat 10 more times than his teammate Dwight. Dwight batted 17 fewer times than another teammate, Ellis. The three players were up to bat a total of 1650 times. How many times did Ellis come to bat?
I only really need help making an equation because the ones I tried making didn't work.