Gdansk and Warsaw are accessible by plane from most European hubs, including Frankfurt, Munich, Stockholm, etc.
The airport is the Gdansk Lech Walesa Airport.
From the Airport it is possible to take the PKM train to reach the city (direction Gdańsk Wrzeszcz / Gdańsk Główny).
Schematic of PKM route:

The train station “Gdańsk Strzyża” is the University stop. The trip takes about 15 min, the ticket is about 10 PLN. You can buy the ticket form the conductor.
To get to the Faculty of Chemistry (ul. Wita Stwosza 63, 80-308 Gdańsk) you can also get a car; see the map here.
Warsaw:
The airport is the Warsaw Chopin Airport.
From the Airport it is possible to take the subway, bus or taxi to reach the city (Warszawa Centralna).