If all t shirt there will be 681- 12*50=81 left remain 81 can buy 81/3=27 shorts so T shirt is 50-27=23