The difference between two positive integers is2. If the smaller is added to the square of the larger the sum is 40. Find the integers