To solve the system of linear equations you can use the reduction or elimination method, like this

So,

Now you can sum both equations and then you have

Now you can plug the value of c into any of the initial equations to get the value of p, for example in the second equation

Therefore, the solution of this system of equations is
