To solve for how much it would cost, we have to solve for the volume of the slab first, then multiply it by the given price of concrete.
Solving for the volume of the slab:
Since the given price is in cubic yard, it is easier to convert the given measurements from feet to yards first. Using the relation: 1 ft = 0.333 yd:
17 ft = 5.67 yards
2 ft = 0.67 yards
17ft x 17ft x 2ft = 5.67 yd x 5.67 yd x 0.67 yd = 21.54 yd^3
Multiplying this by $40.00 / yd^3:
21.54 x 40 = 861.59
Therefore, it will cost $861.59 to pour the slab.