The sum of the ages of two brothers is 38. in four years ago the age of the elder brother was the square of the younger brother. Find their ages