ans is- 54,27.
If you see the sequence of numbers you will realize that there are 2 alternate sequences in the riddle;
The first sequence has 2 possibilities, in case of an odd number you multiply by 3 and add 1 and in case of even number you just multiply by 3.
The second sequence is we divide the previous number by 2.