Sweets are sold in bags and in tins.
There are 20 sweets in a bag.
There are 30 sweets in a tin.
Lee buys B bags of sweets and T tins of sweets.
He buys a total of S sweets.
Write down a formula for S in terms of B and T.