You can
put this solution on YOUR website!Let x = the original number of jelly beans in the jar before the pilfering began.
After Michael has pinched his third, the number left is:
After Tanya's sampling, the number left is:

=
Finally, after Brian has helped himself to one third, there are 40 jelly beans remaining:

Multiply both sides by 27.

Divide both sides by 8.

There were 135 jelly beans in the jar before the crime.
Check:

= 90

= 60

= 40