peter is twice as old as paul,paul is  5 years older tha mary.if the sum of theirvages is 31,how old is mary?