Given the following coordinate points:

Write an algorithm (in pseudocode) to solve for x1, x2, x3, and x4.
This is what I have so far:
var y1, y2, y3, y4 = 50, 50, 75, 75;
var offset1 = tan(60) * y1;
var offset2 = tan(60) * (y2 - y1);
var x1 = 200 + offset1;
var x3 = 200 + offset1 + offset2;
