This an example of using ratio and proportion and is discussed further in Similar shapes. The following two triangles are similar. Find the lengths p and q to one decimal place.