Help me in solving BURGER problem

My issue

expected output for 1 65 is -1, which means that it’s not possible, But, it is possible and the obvious answer is 10

My code

# cook your dish here

for i in range(int(input())):
   
 x, y= map(int, input().split())
 t=0
 tot=0
 cx=x
    
 while tot<y:
    if(cx>y-tot):
        cx=x
        t+=1
        if(x>y):
                print(-1)
                break
        else:
                tot+=cx
                cx=2*cx
                t+=1    
                
    elif(cx<=y-tot): 
        tot+=cx
        cx=2*cx
        t+=1
    else:
        
        break
 print(t)

Learning course: 2000 to 2500 difficulty problems
Problem Link: Double Burgers Practice Problem in 2000 to 2500 difficulty problems

Can you explain how you are getting the answer 10
because in my case it not possible