Answer:
Total time taken by walking, running and cycling = 22 minutes.
Step-by-step explanation:
Let the speed of walking = x
As given,
The distance of walking = 1
Now,
As 
⇒ Time traveled by walking = 
Now,
Given that - He runs twice as fast as he walks
⇒Speed of running = 2x
Also given distance traveled by running = 1
Time traveled by running = 
Now,
Given that - he cycles one and a half times as fast as he runs.
⇒Speed of cycling =
(2x) = 3x
Also given distance traveled by cycling = 1
Time traveled by cycling = 
Now,
Total time traveled = Time traveled by walking + running + cycling
=
+
+ 
= 
If he cycled the three mile , then total time taken =
+
+
= x
Given,
He takes ten minutes longer than he would do if he cycled the three miles
⇒x + 10 = 
⇒
⇒
⇒x =
= 12
⇒x = 12
∴ we get
Total time traveled by walking + running + cycling =
min
I will be using the language C++. Given the problem specification, there are an large variety of solving the problem, ranging from simple addition, to more complicated bit testing and selection. But since the problem isn't exactly high performance or practical, I'll use simple addition. For a recursive function, you need to create a condition that will prevent further recursion, I'll use the condition of multiplying by 0. Also, you need to define what your recursion is.
To wit, consider the following math expression
f(m,k) = 0 if m = 0, otherwise f(m-1,k) + k
If you calculate f(0,k), you'll get 0 which is exactly what 0 * k is.
If you calculate f(1,k), you'll get 0 + k, which is exactly what 1 * k is.
So here's the function
int product(int m, int k)
{
if (m == 0) return 0;
return product(m-1,k) + k;
}
<h2>
Answer:</h2>
The probability is:

<h2>
Step-by-step explanation:</h2>
It is given that:
An urn contains balls numbered 1 through 20.
A ball is chosen, returned to the urn, and a second ball is chosen.
This means that this is a case of a replacement.
Hence, one of the event is independent of the other.
Now we know that the probability to get a particular number of ball is:

( Since, there are total 20 balls and a ball of one particular number is just unique )
i.e. 
Hence, the probability that the first and second balls will be a 8 is:

I am not sure about this but in my opinion it would be 32 sorry if It's wrong. I hope this helped! :)
(I couldn't understand the question correctly)