You can't determine the X coordinate of P1 and P4 from what you have there. And you need to know the Y distance between the start and end.