Making a 2 of the same light move to 2 of the same object

I want to make 2 of the same kind of light stick to 2 of the same object. So, I have an orange block and I want an orange light to stick to in (the block will be moving). I have that part down, But I want to have 2 of these blocks, which means there will have to be 2 lights. So, I make 2 lights, but they both go to one block. How do I make both of the blocks have I light stuck to them?

To each block and each light add an instance variable “id” and set block and light to the same number. Then in events just do something like this for each block: