Before receiving the gift, the groom had to solve a math problem, the result of which was the number 5090.