Let x be the number of apples bought
Let y be the number of peaches bought
From the question: " he bought $14 worth of apples and peaches. Each apple costs 1$ and each peach costs $2. "
x + 2y = 14
Also; "He bought a total of 9 apples and peaches all together"
x + y = 9
The system of equation is :
x + 2y = 14
x + y = 9