39. Find a two-digit number that has the following properties:

a) if the desired number is multiplied by 2 and 1 is added to the product, the result is a perfect square;

b) if the desired number is multiplied by 3 and 1 is added to the product, the result is a perfect square.