I’m failing math help plssss

Answer:
Step-by-step explanation:
L and W are the length and width of the flag.
"The perimeter of the flag is 500 feet"
2L + 2W = 500
L+W = 250
"The length is 30 feet greater than the width"
L = W+30
You have a system of two equations:
L+W = 250
L = W+30
Substitute W+30 for L:
(W+30) + W = 250
2W + 30 = 250
2W = 220
W = 110 ft
L = W+30 = 140 ft
:::::
"C is 400 miles longer than D"
C = D+400
"The sum of their lengths is 5,580 miles"
C + D = 5,580
You have a system of two equations:
C = D+400
C + D = 5,580
Substitute D+400 for C:
(D+400) + D = 5,580
2D + 400 = 5,580
D = 2,590 miles
C = D+400 = 2,990