How many switches are there for this light ?
where are you located ?
is this 220 ?
are both red and black hot wires ?
Is the green earth ground ?
It looks like you need to connect the 2 blacks togeather and go to one side of the light
The extra black must go to something else
You originally stated you had 2 blacks a red and a green
Now you have 3 blacks ?
Can you tell me what you have ?