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:
How do you calculate the median from the given data?

### Input:
1, 2, 8, 9, 12, 13

### Response:
To calculate the median from the given data, order the numbers in the set from least to greatest and determine the middle number. In this case, the median would be 9.