Let's define the cost of each pair of socks as \( X \).
Amari spent a total of $47. He bought one shirt for $26 and 3 pairs of socks. The total cost of the 3 pairs of socks can be represented as \( 3X \).
We can write the equation representing the total amount spent:
\[ 26 + 3X = 47 \]
Now, to find the cost of each pair of socks, we can solve this equation for \( X \):
- Subtract 26 from both sides:
\[ 3X = 47 - 26 \]
\[ 3X = 21 \]
- Divide both sides by 3:
\[ X = \frac{21}{3} \]
\[ X = 7 \]
Therefore, the cost of each pair of socks is $7.