How to convert DP, PX, SP among each other, especially DP and SP?

How to convert DP, PX, SP among each other, especially DP and SP?