To determine the D-configuration, we observe the orientation of the hydroxyl group (-OH) relative to the carbon atom. The D-configuration is given when the hydroxyl group is on the right-hand side of the Fischer projection.
Thus, the compounds that have D-configuration are 5 and 15.