can someone help me write the equation of the line

1. parallel to the line x=5 passing through (4,2)
2. perpendicular to the line x=8 passing through (3,4)

1. The line x = 5 is vertical, so the slope of the parallel line is infinity. The value of x must always be 4.

x = 4 is the answer.

2. The slope of the x=8 (vertical) line is infinity, so the slope of the perpendicular line must be zero. That means that y = 4, regardless of x. Therefore y = 4 is the answer.