def stationObjectsByRiver(stations, rivers):
    """Returns a list of Monitoring Station objects which are on the rivers input"""
    stationObjectsByRiverOutput = []
    for river in rivers:
        for station in stations:
            if station.river==river:
                stationObjectsByRiverOutput.append(station)
    return stationObjectsByRiverOutput