For the pair of similar triangles, find the value of x.


2x-4


42


x+8


24


The value of x is


(Simplify your answer. Use a comma to separate answers as needed. )