The volume of the rectangular prism with dimensions 8 yards, 6 yards, and 5 yards is 240 cubic yards.
The surface area A of a rectangular prism with dimensions l, w, and h can be calculated using the formula:

In this case, the surface area is given as 236 square yards, and the dimensions are l=8 yards, w=6 yards, and h=p (where p is the third dimension)

Solving for p:

Combine like terms:

Subtract 96 from both sides:

Divide by 28:

Now that we have the value of p, we can calculate the volume V of the rectangular prism using the formula:

Substitute in the given values:

So, the volume of the rectangular prism is 240 cubic yards.