William spent $384 to buy some T-shirts and shirts. The cost of a pair of shorts was $12 and a T-shirt cost $3 more than the shorts.
If the number of shorts he bought was 3/4 as many as the number of T-shirts, how much did he spend on the T-shirts?