| Let p be the number of jelly beans Peter ate. |
| Let j be the number of jelly beans Jerry ate. |
| Let q be the number of jelly beans Pam ate. |
| Then, since there are 56 jelly beans altogether, p+j+q=56 |
| and, since Peter had 4 times as many as Jerry, p=4j |
| and, since Peter had 2 fewer than Pam, p=q-2. |
| We may rewrite p=q-2 as q=p+2. |
| Now, substituting (q=p+2) into the very first equation, we have |
| p+j+(p+2)=56. |
| Substituting (p=4j) into this equation, we have |
| 4j+j+(4j+2)=56. |
| 9j+2=56 |
| 9j=54 |
| j=6 |
| Thus, Jerry had 6 jelly beans. Since p=4j=24, |
| Peter had 24 jelly beans. |
|
|
|
|
|
|