Collinear Squares

Vertices for the three given squares are collinear and the coordinates for the blue and red squares are given.

1. What are the coordinates of the purple point? 2. Can you write a general rule that can be used to find the coordinates of the purple point for any case?