The present ages of A and B are in ratio of 9:4. Seven years hence the ratio of their ages will be 5:3. Find their present ages.