is there a statistical test for this

#1
1652920899928.png

I want to know if there is a statistical difference between the 2 sets of data. Red and black are cateegorical variables which are unknown if they affect y. Time is known to affect y.