A park has two walking paths shaped like right triangles. The first path has legs 75 yd and 100 yd. The second path has legs 50 yd and 240 yd long. What is the total length of the shorter path, in yards?