write the black line as x, so the green line is (500-x). let the red line be k. set up two pythagorus equations. solve for x. then solve for k.