Question

$$p+2c=295; 3c+4P=755$$

Solve for p, c, P

$p=\frac{8P-625}{3}$
$c=\frac{755-4P}{3}$
$P\in \mathrm{R}$