I need help with both geometry questions.

Answer:
5) x = 5
6) x = 8
Step-by-step explanation:
5) Since RT is 40 and RS is 15, ST = RT- RS=25
Since ST also equals 5x, 5x = 25 and x = 5.
6) Since ∠CBD and ∠DBA are supplementary, they add up to [tex]180^\circ[/tex], and because ∠CBD = [tex]90^\circ[/tex], ∠DBA = [tex]90^\circ[/tex].
Since ∠DBA - ∠DBE = ∠EBA, ∠EBA = [tex]90^\circ-40^\circ=50^\circ[/tex].
Also ∠EBA = 6x + 2, so 6x + 2 = [tex]50^\circ[/tex].
6x = 48, and x = 8.