Judging from the photo, I assume the intake line from the Andreja attaches to the available barbed fitting and the filter's line goes into the tank:
Photo courtesy of Chris' CoffeeNote that there are two lines for your espresso machine; the one is an intake, the other exhausts water from the over-pressure valve (OPV). Usually the OPV tube has a V slit, but if you're uncertain, run the pump with a blind basket in the portafilter. All the water drawn by the inlet line will exit from the OPV line (for more details, see
adjusting brew pressure / OPVs explained).