def get_components(items):
    """Return a list of pairs of IDs and numbers in items.

    get_components(list(str)) -> list((str, int))
    """
    components = []
    for item in items:
        item = item.strip()
        itemid, _, itemnumstr = item.partition(':')
        itemid = itemid.strip()
        itemnumstr = itemnumstr.strip()
        components.append((itemid, int(itemnumstr)))
    return components