Hello,
I need help to create the code for this math problem, I have the answer with me! Please help. I am just learning to create code. Thanks.
Two girls agree to go on a road trip together. They travel (x + 5)km on the first day. On the second day they travel 2km more than half of the distance they travelled on the first day. On the third day they drove 3 times as far as they did on the second day. If they drove 5000km total, find the value of x.
Answer:
The distance they drove on the first day: (x+5)
The distance they drove on the second day: 2 + (x+5)/2
The distance they drove on the third day: 3 [2 + (x+5)/2]
The total distance they travelled:
(day 1)+(day 2)+(day 3) = 5000
(x+5) + 2 + (x+5)/2 + 3 [2 + (x+5)/2] = 5000
(x + 5) + 2 + (x+5)/2 + 6 + 3(x+5)/2 = 5000
(x + 5) + 8 + 4(x+5)/2 = 5000
(x + 5) + 8 + 2(x + 5) = 5000
3(x+5) = 5000-8
3(x+5) = 4992
x + 5 = 1664
x = 1664 - 5
x = 1659 km