If the sum of the total mining costs for student 1 and student 2 is $40, what is the cost of equipment for student 2?