What is relationship between the mass and terminal velocity

none, by itself. Terminal velocity involves air resistance, so a large heavy mass (like a sheet of metal) might have a lower terminal velocity than a compact lighter mass (like a ball of ice).