The number of boys in a class is 10 less than twice the number of girls.

Find the total number of the students in the class, if the number of boys is 5 more than the number of girls.

X girls in class.

2x-10 boys in class.

x + (2x-10) = x + (x+5).
X = ?.