so basically i have a list of rectangles

what i have to do is, given one of them, calculate if there is a common area (and eventually calculate it)

i really cant find any simplification over checking point by point, maybve im overthinking it... but isnt there some simpler math to do it?