How UE can figure out DMRS position in PDSCH in NR?

Hi Experts,
Any idea on how UE can figure out the DMRS position in PDSCH in NR?

DMRS Mapping type indicate the time domain position and can have value pos2 or pos3.
DMRS Configuration type indicate the density of the DMRS symbol in frequency domain.