drone_a = [10, 20, 35, 50, 80]
drone_b = [15, 25, 30, 60, 90]
target = 10
total = []
answer = []

for i in range(len(drone_a)):
    for j in range(len(drone_b)):
        if drone_a[i] - drone_b[j] == target or drone_b[j] - drone_a[i] == target:
            total.append([drone_a[i], drone_b[j]])

total.sort()
answer.append(total[0])

print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: