You will have to measure the distance between the sockets and the distance from them to the pool edge. Not all ladders are the same. You are missing the wedge bolts for those anchors.
Remember that the portion in the pool will be against the vinyl. You may not want something that can move as much as a hinge will allow. Loosening the wedge bolts allows the rail to be removed.
View attachment 517111