Observation of first and second sound in a Berezinskii-Kosterlitz-Thouless superfluid