Clark spent a total of $52 on a pair of shoes and a new jacket. The shoes cost $4 more than the jacket. Write a system of equations to find the cost of the shoes x and the cost of the jacket y. Then find the cost of the jacket.