Help me in solving BM01 problem

My issue

run time error

My code

# Update the '_' in the code below

t = int(input())
for i in range(t):
    #Accept 2 integers inputs
    A, B = map(5,10)     
    #Sum of inputs
    S = A+B               
    #Product of inputs
    P = A*B               
    #Print the desired output for each test case
    print(t,S,P)              

Learning course: Logic Building in Python
Problem Link: CodeChef: Practical coding for everyone

@mohammedsalman
u have to do it like this

# Solution as follows

t = int(input())
for i in range(t):
    #Accept 2 integers inputs
    A, B = map(int, input().split())     
    #Sum of inputs
    S = A + B               
    #Product of inputs
    P = A * B               
    #Print the desired output for each test case
    print(S,P)