Calculate the median of this set of numbers.
The median of the given numbers is 5. 

To find the median for a set of numbers, we first need to arrange the numbers in ascending order: 2, 4, 5, 7, 8. 
Next, since there is an odd number of values, we take the middle value, which is 5. Hence, the median of the set of numbers 5, 4, 7, 2, 8 is 5.
5, 4, 7, 2, 8
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Calculate the median of this set of numbers.

### Input:
5, 4, 7, 2, 8

### Response:
The median of the given numbers is 5. 

To find the median for a set of numbers, we first need to arrange the numbers in ascending order: 2, 4, 5, 7, 8. 
Next, since there is an odd number of values, we take the middle value, which is 5. Hence, the median of the set of numbers 5, 4, 7, 2, 8 is 5.