Question 979263
p, c, C;
puppy, small cat, large cat;


{{{system(c+C+p=24,p+C=2(c),p+c=C)}}}


Any method you want.  Solve for p or any other variables you want.


A start for the system, not the only way:
Substitute for C in the first two equations.
-
{{{system(c+(p+c)+p=24,p+(p+c)=2c)}}}
-
{{{system(2c+p=24,2p+c-2c=0)}}}-------which is a simpler system...