Answer:
A variable-ratio schedule
Explanation:
The case shown in the question above can be considered an example of a variable-ratio schedule, which is a type of reinforcement scheme in operant conditioning, where a response is observed in the elaboration of an unpredictable number of responses stimulated through repetitive training, or that is, this type of reinforcement scheme encourages the performance of a specific and desired behavior, through various "trainings" with variable responses, until the desired behavior is achieved.
In the case above, the desired behavior was Joshua's ability to run the equivalent of a half marathon. This behavior was stimulated with several trainings that allowed Joshua to run different amounts of kilometers, until he could run the desired amount.