Mario's Jump (Indirect Measurement with Similar Triangles)

Mario is 12 feet in the air standing on a brick. If he jumps down 24 feet he will land on the green pipe, which is 4 feet tall. Mario thinks he can bounce off the green pipe to reach the gold star which is hovering 16 feet off the ground! The longest jump Mario has ever made is 40 feet. Will Mario be able to jump high enough to reach the gold star?