X in this equation is about 4 and a half i know because i used a cacisnatter
Since he starts with (10x+7) dollars and is buying two pairs of jeans that each cost (4x-5) dollars you should subtract the cost of the jeans from his starting amount.
(10x+7)-2(4x-5)=
10x+7-8x+10=
2x+17