Illustration showing two equal right triangles. This can be used to show that two right triangles are…