The difference of 3 times a number and 5 is 40 . Find the number .