If three is added to five times a number, the result is thirty-one more than the number, find the number.