To write an equation for the total amount Amari spent, we can define the variables as follows:
- Let \( x \) represent the cost of each pair of socks.
- Let \( S \) represent the cost of the shirt.
The total amount Amari spent at the mall can be represented as:
\[ S + 3x = T \]
where \( T \) is the total amount Amari spent.
This equation shows that the cost of the shirt plus the cost of 3 pairs of socks equals the total amount spent.