Triangle abc is similar to triangle xyz, solve for plebs

ΔABC ~ ΔXYZ
[tex] \frac{ab}{xy} = \frac{ac}{xz} \\ \frac{24}{p} = \frac{16}{20} \\ p = \frac{24 \times 20}{16} \\ p = \frac{480}{16} \\ p = 30[/tex]
So, the value of p is 30
Hope it helpful and useful :)