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