Three times a number is subtracted from another number and the difference is 3.  The sum of  the two numbers is 31.  What is the smaller of the two numbers?