Two shirts costs $7 x 2 = $<<7*2=14>>14.
The cost of a pair of shoes is $7 + $3 = $<<7+3=10>>10.
The total cost of two shirts a pair of shoes is $14 + $10 = $<<14+10=24>>24.
The cost of a bag is $24 / 2 = $<<24/2=12>>12.
So, Sofia paid a total of $14 + $10 + $12 = $<<14+10+12=36>>36.
#### 36