Mark M. answered 11/30/19
Retired college math professor. Extensive tutoring experience.
Let x = number of friends swimming and y = number of friends not swimming
x + 1 = 2(y - 1)
y + 1 = x - 1
x - 2y = -3
x - y = 2
Subtract the equations to get -y = -5
So, y = 5 and x = 7.