Hello,
Please, see the attached file.
Thanks.
Answer:
Written in Python
def sums(n):
total = 0
for i in range(1,n+1):
if i%2 == 0:
total = total + i*2
else:
total = total + i
return(total)
Step-by-step explanation:
The function is written in Python
def sums(n):
This initializes total to 0
total = 0
This iterates through the integers that makes up n i.e. 1,2,3.....n
for i in range(1,n+1):
This checks if current digit is even
if i%2 == 0:
If yes, it adds the double of the digit
total = total + i*2
else:
If otherwise, it adds the digit
total = total + i
This prints the calculated sum or total
return(total)
To call the function from main, use the following:
print(sums(n))
Where n is a positive integer. i.e. 
Answer: 14
Step-by-step explanation:
Okay so it asks in all, which means morning distance + afternoon distance
We got the afternoon distance so now we have to find the morning one
it says the afternoon distance (6), is 25% less than the morning distance.
Which means the afternoon distance is 0.75 of the morning distance.
so 0.75x = 6, x = 6/0.75 = 8
Then you add 8 to 6 to get 14
Hello!

2x + 1 = 5x - 8
Solve by subtracting both sides by 2x:
2x - 2x + 1 = 5x - 2x - 8
1 = 3x - 8
Add 8 to both sides:
1 + 8 = 3x - 8 + 8
9 = 3x
Divide both sides by 3:
9/3 = 3x/3
x = 3
(A) 343 women
(B) 82 seniors