If both of your rectangles have their sides parallel with OX and OY vectors, respectively, then assuming that (x1, y1) is the left-top corner, while (x2, y2) is the right-bottom corner, then your solution for intersection is:
(p2.x1 >= p1.x1) && (p2.x2 <= p1.x2) && (p2.y1 >= p2.y1) && (p2.x2 <= p1.x1)
while if you need to determine intersection, then you will need to check whether rectangle1 is completely to the left, right, top or bottom in comparison to rectangle2:
!((p2.x2 < p1.x1) || (p2.x1 > p1.x2) || (p2.y2 < p1.y1) || (p2.y1 > p1.y2))
So, if the negation above is true, then the rectangles intersect.
However, if any of the rectangles may be rotated in comparison to the OX and OY vectors, then it is slightly more complex, see here: How to check intersection between 2 rotated rectangles?
EDIT
Whatever the polynom you have, each side has a chunk of a line. You can define the equation of the line, see here: https://www.mathsisfun.com/equation_of_line.html
That defines all the points on the line. However, you will need to use an inequality of the line, using the > or the < relation, depending on which side of the line your trapezoid is. Since you have four sides, this describes four inequalities. Having two trapezoids, you have 8 inequalities in total. https://courses.lumenlearning.com/suny-beginalgebra/chapter/solve-compound-inequalities/
Do this on paper for a few examples and after that the algorithm for the trapezoids will be easy.
In short: do the comparison with rectangles that you draw on your trapezoid and contains all the points of the trapezoid. If these wrapper rectangles don't intersect, then the trapezoids will not intersect either. If the rectangles intersect, then see whether the lines of the trapezoid's given sides intersect. If the outer rectangles intersect, but the trapezoid lines are not, then see whether one of the inner recangle intersects the other's outer rectangle.