Ten years later, A will be twice as old as B and five years ago, A was three times as old as B. What are the present ages of A and B ?