How would you go about testing if a POINT is on a plane?

This need has arisen because I have one set of planes and two sets of points that are not in any predictable order on those planes. All the points were created on one of the planes, the question is which one?

Each list of points has gaps and begins and ends randomly. A plane may have two points, one point or no points on it.

I have to line up points from the two lists on each plane to create geometry on that plane. I dont know how to simplify this into an example that isnt a mile long so while I try to do that i thought I would throw the question out there in case there is some simple way to perform this test