human
The cost of purchasing two commodities is $827. If the purchase price of the first one exceeds the other by $127, what is the purchase price of the first commodity?
assistant
Define a variable ** Let X be the price of the first commodity, so the price of the second commodity is X - $127.
Write an equation ** The cost of purchasing two of them is X + (X - $127) = $827.
Simplify ** Combining like terms, we get X*2 - $127 = $827.
Simplify ** Subtracting $137 from both sides, we get X*2 = $954.
Simplify ** Dividing both sides by 2, we get X = $477.
#### 477