I don't understand how I'm supposed to get the first code though.
You get the code from the lines in the bar code