Help me in solving KITCHENCOST problem

My issue

What is wrong with my code

My code

# cook your dish here
t= int(input())
N = int(input())
A = int(input())
B = int(input())
total_cost = 0
i = 0


while i < N:
    if A[i] >= X:
        total_cost = total_cost + B [i]
    i = i + 1
        
print(total_cost)

Learning course: Arrays using Python
Problem Link: Practice Problem in - CodeChef

First of all A[i] → ‘int’ object is not subscriptable and the other X is not defined