If tomorrow is thursday, today is wednesday.
A week has 7 days " Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday ".
42 / 7 = 6 ( Remainder = 0)
So you can say that after multiples of 7 days, the day will repeat itself as wednesday.
Hence after 42 days wednesday will occur again.
So we calculate after the remainder (0) , the answer is Wednesday.
Simple Logic = And whatever the remainder obtained is, add that to the day.