please help! with explanation and steps!

Answer:
p = 4,8 ; r = 7,5 ; q = 4,5
Step-by-step explanation:
according to Thales's theorem, we have:
[tex]\frac{3}{p}=\frac{5}{5+3}=\frac{5}{8}=> p= 3:\frac{5}{8}=4,8[/tex]
and: [tex]\frac{5}{8}=\frac{r}{12}=> r=7,5\\\\\frac{5}{3}=\frac{7,5}{q}=> q=4,5[/tex]