https://i.stack.imgur.com/oYoYz.png https://i.stack.imgur.com/AdmuM.png
The first column in the images linked above is the wavelength, while the second is the flux. I ne
Please consider the following example
import numpy
a = numpy.array([51, -2, -16, 38, 27])
b = numpy.array([-16, 51, 38])
print([numpy.where(b[x] == a)[0][0] for x in range(len(b))])
# [2, 0, 3]
The indices corresponding to the values of b in a are returned. This only works if all values of b are contained into a. For your example, that is the case, b being the first column of your second picture and a the first column of your first picture. Having the indices, you can then easily subtract flux values at the same wavelength.