The ratio of ages of two persons is 4 : 7 and one is 27 years older than the other. Find the sum of