COMC 2022 A Problem 4

In the diagram, triangle A B C lies between two parallel lines as shown. If segment A C has length 5 \mathrm{~cm}, what is the length (in \mathrm{cm}) of segment A B?