def get_position_parameter(message_type, msg_tow, msg_position, tow,
    numofmsg, msgout):
    """
    Finds the position of the bounds related to the trigger

    Parameters
    ----------
    message_type : list
      names of message type
    msg_tow : list
      TOW values of the corresponding messages
    numofmsg : integer
      Count of the number of messages in the list
    msgout : string
      Name of the message the user wants to analyze
    tow : int
      TOW value of the bound message
    msg_position : list
      List of the message value that will get extracted
    """
    itt = 0
    value = 0
    while itt < numofmsg:
        if msg_tow[itt] == tow and message_type[itt] == msgout:
            value = msg_position[itt]
        itt += 1
    return value
