Merchant's Gold

A rich merchant had collected many gold coins. He did not want anybody to know about them. One day, his wife asked, "How many gold coins do we have?"

After pausing a moment, he replied, "Well! If I divide the coins into two unequal numbers, then 32 times the difference between the two numbers equals the difference between the squares of the two numbers."

The wife looked puzzled. Can you help the merchant's wife by finding out how many gold coins they have?

Answer

The merchant has 32 gold coins.
It is easy to check this... Let's divide the 32 coins into two unequal numbers, say, 27 and 5. Then,