document.write('Tom went to town with $50 , but returned at night with $150. He bought a hat at a clothing store and some apples at the market. Then he had his eyes tested. He gets paid every Thursday by check. The banks are only open on Tuesdays, Thursdays, and Saturdays. The eye doctor is closed on Saturday. The market stays closed on Thursday and Friday. On what day did the man go to town?