Respuesta :

 (1,-1),(1,5),(5,-1),(5,5) and then (2,4) is inside the rectangle
this is the first step, now here is what you want, 

B= (1,5) 
A=(1,-1)