Answer:
s = 5(30 -s)
Explanation:
The given relations support a system of equations:
s = 5h . . . . . . . . . . 5 times as many shirts as hats
s + h = 30 . . . . . . . 30 shirts and hats together
__
If you want to write a single equation, you could write ...
s = 5(30 -s) . . . . . the number of shirts is 5 times the number of hats, and the number of hats is the difference between 30 items and the number of shirts.