Six less than five times a number is subtracted from three times the number. If the result is 12, find the number.