Andrea is three times as old as Jim was when Jim was twice as old as he was when the sum of their ages was 474747 . If Andrea is 292929 years older than Jim, what is the sum of their ages now?