Write equation for the variable R.

P = R + C

P - C = R + C - C

R = P - C