The midpoint of the given lines is: (3,2).
As the diagonals of a rectangle bisect each other, (3,2) must lie on the given line.
∴3=2(2)+c⟹c=−1
Let P be one of the vertex that lies on the line.
As P satisfies the equation of the line, P≡(h,2h−1)
Using the fact that the sides of a rectangle are perpendicular:
3−(2h−1)1−(h)⋅1−(2h−1)5−(h)=−1
4−2h1−h⋅2−2h5−h=−1
⟹(4−2h)(2−2h)+(1−h)(5−h)=0
⟹(1−h)(2(4−2h)+(5−h))=0
⟹(1−h)(13−5h)=0
⟹h=1,513
Other two vertices: (1,1),(513,−313)