A parallelogram and a triangle both have a base of 8 inches. The height of the parallelogram is 4 inches. What is the height of the triangle if both shapes have the same area?