Two masses A and B