from typing import List
from typing import Dict


def get_pairs(line: List[str]) -> Dict[str, str]:
    """Collects key value pairs from a line.

    There may be several key value pairs in one line. These are separated by spaces.

    Example:
        line = 'language python version 3.9 answer 42'
        becomes
        {
            'language': 'python',
            'version': '3.9',
            'answer': 42'
        }
    """

    pairs = dict()
    for i in range(0, len(line), 2):
        key = line[i].lower()
        value = line[i + 1]
        pairs[key] = value
    return pairs