After counting the gold coins the man said that ten of them was missing and had been taken by the girl as he had forty gold coins. He further commented that he will recover the remaining amount from him (the girl's father). But the father refused.
The man left the gold coins and went to the court and informed the judge there about what had taken place between him and the girl's father.
The judge sent for the girl and her father, and when they arrived asked the girl how many gold coins she found. She replied thirty gold coins.
The Judge that asked the selfish man how many gold coins he lost and he answered forty gold coins.
The judge then told the man that the gold coins did not belong to him because the girl found thirty and not forty as he claimed to have lost and then told the girl to take the gold coins and that if anybody is looking for them he will send for the girl.
The judge told the man that if anybody reports that they have found forty gold coins he will send for him. It was then that the man confessed that he lied and that he lost thirty gold coins but the judge did not listen to him.