Can you discover the missing number in this series?

37, 10, 82
29, 11, 47
96, 15, 87
42, ?, 15

The missing number is 6.
The number in the middle of each triple is the same as the digits of either end's number when added together. 3+7=10=8+2 and so on.