When the smaller of two consecutive integers is added to three times the larger, the result is 39, Find the integers.