A mathematician works for $t$ hours per day and solves $p$ problems per hour, where $t$ and $p$ are positive integers. One day, the mathematician drinks some coffee and discovers that he can now solve $4p+7$ problems per hour. In fact, he only works for $t-3$ hours that day, but he still solves twice as many problems as he would in a normal day. How many problems does he solve the day he drinks coffee?