Good evening. Greetings and blessings. It is a simple system of equations with three equations and three unknowns with a unique solution P=17, G=7, and R=3. Total 27. Thank you very much. 😀