Apples cost x cents each and oranges cost (x + 2) cents each. Dylan spends $3.23 on apples and $3.23 on oranges. The total of the number of apples and the number of oranges Dylan buys is 36. Write an equation in x and show that it simplifies to 18x²−287x−3230.