Kate went to the store and bought some pants for $22 and 4 shirts. She spent a total of $52. How much did each shirt cost? Write an equation to represent this situation.