If you pay $29 per month, (using m as the variable), the equation would be 29m. Since there is a one-time fee of $50, we add that once. Your equation is c=29m+50. (Assuming the variable for months is m)
If you paid 920$ dollars, first we need to subtract your $50 one time fee. 920-50=870. Since you paid $29 per month, divide 870 by 29. The answer is 30. This means you were a member of the gym for 30 months.
Let x, x + 1 two consecutive integers; We have x + x + 1 = 185; 2x + 1 = 185; 2x = 184; x = 92; x + 1 = 93; 92 < 93; 92 is the smaller of the two integers.