Sarah went shopping and bought a shirt that costs $18. She also bought 3 pairs of pants. Sarah spent a total of $93. If each pair of pants cost the same amount, how much did each pair of pants cost? Write and solve an equation using p to represent the pants.