I had frustrating chat with ChatGPT, surprisingly it wasnt able to solve it even with the hint in the picture. :( It gave me some wrong but interesting answers. Then giving hint to take dec as decimal and oct as octal, it finally solved