AMC 10A 2022 Problem 8

A data set consists of 6 (not distinct) positive integers: 1,7,5,2,5, and X. The average (arithmetic mean) of the 6 numbers equals a value in the data set. What is the sum of all possible values of X ?

Answer Choices
A. 10
B. 26
C. 32
D. 36
E. 40