To find the cost of each pair of socks, we can set up the equation based on how much Amari spent in total.
He spent $47 in total, $26 on one shirt, and the remaining amount went to the socks. Since he bought 3 pairs of socks, the cost of those can be represented as \(3X\), where \(X\) is the cost of each pair of socks.
The equation can be written as:
\[ 26 + 3X = 47 \]