You can put this solution on YOUR website!
let's Peter's age be and Greg's
if five years ago, Peter was twice as old as Greg, we have
if Peter is years old now,we have
so, Greg is years old
check:
Peter is and Greg is
five years ago Peter was and Greg was , and you can see that Peter was twice as old as Greg because