def getPrice(building_type, line):
    """Gets the price of the item that is being bought or sold"""
    if building_type == "buy":
        return line.split(" is buying ")[1].split(" for ")[0].strip()

    if building_type == "sell":
        return line.split(" is selling ")[1].split(" for ")[0].strip()