The best method i found is guess-and-check. Just guess the three numbers. If you do this you should get 6+8+10.
Is the equivalent of the value of p most of a hypothetical answer.
for a line the letters can be either way it can be DC or CD either way it is the same line being represented. because the other lines are represented by other letters you can be either order.