def answer_question(model1, question):
    """Function returns True if the question premise holds in the model1 an False
    if it doesn't. First searches the two objects from the question and checks their
    coordinates. The answer will be given based on the relation of the question and
    the two objects in the question.
    Only checks for right and left relations(but 2-dimensional can be implemented).
    """
    obj1_coords = (0, 0)
    obj2_coords = (0, 0)
    for item in model1.items():
        # if one of the objects is found in the model1, take it's coordinates.
        if item[1] == question[0]:
            obj1_coords = item[0]
        elif item[1] == question[2]:
            obj2_coords = item[0]
    if (question[1] == "R" and obj1_coords[0] > obj2_coords[0]) or (
            question[1] == "L" and obj1_coords[0] < obj2_coords[0]):
        return True # the relation is r and the x coords are bigger -> correct
    return False