masc is 7 years older than sam and the sum their ages is 27 . What are their ages?