Five years ago , Sam was four times as old as John , and in five years he will be twice as old as John . Find the present ages of each .