Quinn is watching a spider dangle from its web. The spider has a potential energy of 6 joules. It has a kinetic energy of 2 joules. What is the spider's mechanical energy?