The purple box shows the area Math Club
I used a basic parser to extract the x vals (x1-x3) and y vals (y1-y3) based on the points given, and plugged them into the function Most of the code is in the parsing part. The last block of code will do the trick if you replace the variables with the x and y vals